Add proper lifecycle and superseding support for Architectural Decision Records
This commit is contained in:
1 parent
70edfa4389
commit
54aead2151
4 files changed
+28
-3
No files matched your search
@@ -82,8 +82,16 @@ pub struct Adr {
|
||||
pub context: String,
|
||||
pub decision: String,
|
||||
pub consequence: String,
|
||||
#[serde(default = "default_adr_status")]
|
||||
pub status: String,
|
||||
#[serde(default)]
|
||||
pub supersedes: Option<String>,
|
||||
pub timestamp: u64,
|
||||
}
|
||||
|
||||
fn default_adr_status() -> String {
|
||||
"accepted".to_string()
|
||||
}
|
||||
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
|
||||
pub struct Preference {
|
||||
pub key: String,
|
||||
|
||||
Reference in new issue
Block a user