Add proper lifecycle and superseding support for Architectural Decision Records

This commit is contained in:
Riz Ashraf committed 2026-09-27 10:01:46 +01:00
1 parent 70edfa4389
commit 54aead2151
4 files changed
+28 -3

No files matched your search

+8
View File
@@ -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,