accept notify addresses

This commit is contained in:
B. Petersen
2024-11-17 01:47:13 +01:00
parent 79993f3011
commit c1252ee814
4 changed files with 12 additions and 1 deletions

View File

@@ -177,6 +177,10 @@ pub struct StatusUpdateItem {
/// If there is no ID, message is always considered to be unique.
#[serde(skip_serializing_if = "Option::is_none")]
pub uid: Option<String>,
/// Array of Addr that should be notified about this update.
#[serde(skip_serializing_if = "Option::is_none")]
pub notify: Option<Vec<String>>,
}
/// Update items as passed to the UIs.
@@ -1423,6 +1427,7 @@ mod tests {
document: None,
summary: None,
uid: Some("iecie2Ze".to_string()),
notify: None,
},
1640178619,
true,
@@ -1447,6 +1452,7 @@ mod tests {
document: None,
summary: None,
uid: Some("iecie2Ze".to_string()),
notify: None,
},
1640178619,
true,
@@ -1480,6 +1486,7 @@ mod tests {
document: None,
summary: None,
uid: None,
notify: None,
},
1640178619,
true,
@@ -1499,6 +1506,7 @@ mod tests {
document: None,
summary: None,
uid: None,
notify: None,
},
1640178619,
true,