This commit is contained in:
Adil Hafeez 2024-11-12 09:56:50 -08:00
parent 76c2a4b2e9
commit dca1f2f648

View file

@ -98,6 +98,15 @@ impl Event {
attributes: Vec::new(),
}
}
pub fn add_attribute(&mut self, key: String, value: String) {
self.attributes.push(Attribute {
key,
value: AttributeValue {
string_value: Some(value),
},
});
}
}
#[derive(Serialize, Deserialize, Debug)]