#[non_exhaustive]pub struct ChangeEventAttributes {
pub aggregation_key: Option<String>,
pub author: Option<ChangeEventAttributesAuthor>,
pub change_metadata: Option<BTreeMap<String, Value>>,
pub changed_resource: Option<ChangeEventAttributesChangedResource>,
pub evt: Option<EventSystemAttributes>,
pub impacted_resources: Option<Vec<ChangeEventAttributesImpactedResourcesItem>>,
pub new_value: Option<BTreeMap<String, Value>>,
pub prev_value: Option<BTreeMap<String, Value>>,
pub service: Option<String>,
pub timestamp: Option<i64>,
pub title: Option<String>,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
Change event attributes.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.aggregation_key: Option<String>
Aggregation key of the event.
The entity that made the change.
change_metadata: Option<BTreeMap<String, Value>>
JSON object of change metadata.
changed_resource: Option<ChangeEventAttributesChangedResource>
A uniquely identified resource.
evt: Option<EventSystemAttributes>
JSON object of event system attributes.
impacted_resources: Option<Vec<ChangeEventAttributesImpactedResourcesItem>>
A list of resources impacted by this change.
new_value: Option<BTreeMap<String, Value>>
The new state of the changed resource.
prev_value: Option<BTreeMap<String, Value>>
The previous state of the changed resource.
service: Option<String>
Service that triggered the event.
timestamp: Option<i64>
POSIX timestamp of the event.
title: Option<String>
The title of the event.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl ChangeEventAttributes
impl ChangeEventAttributes
pub fn new() -> ChangeEventAttributes
pub fn aggregation_key(self, value: String) -> Self
pub fn change_metadata(self, value: BTreeMap<String, Value>) -> Self
pub fn changed_resource( self, value: ChangeEventAttributesChangedResource, ) -> Self
pub fn evt(self, value: EventSystemAttributes) -> Self
pub fn impacted_resources( self, value: Vec<ChangeEventAttributesImpactedResourcesItem>, ) -> Self
pub fn new_value(self, value: BTreeMap<String, Value>) -> Self
pub fn prev_value(self, value: BTreeMap<String, Value>) -> Self
pub fn service(self, value: String) -> Self
pub fn timestamp(self, value: i64) -> Self
pub fn title(self, value: String) -> Self
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for ChangeEventAttributes
impl Clone for ChangeEventAttributes
Source§fn clone(&self) -> ChangeEventAttributes
fn clone(&self) -> ChangeEventAttributes
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ChangeEventAttributes
impl Debug for ChangeEventAttributes
Source§impl Default for ChangeEventAttributes
impl Default for ChangeEventAttributes
Source§impl<'de> Deserialize<'de> for ChangeEventAttributes
impl<'de> Deserialize<'de> for ChangeEventAttributes
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ChangeEventAttributes
impl PartialEq for ChangeEventAttributes
Source§impl Serialize for ChangeEventAttributes
impl Serialize for ChangeEventAttributes
impl StructuralPartialEq for ChangeEventAttributes
Auto Trait Implementations§
impl Freeze for ChangeEventAttributes
impl RefUnwindSafe for ChangeEventAttributes
impl Send for ChangeEventAttributes
impl Sync for ChangeEventAttributes
impl Unpin for ChangeEventAttributes
impl UnwindSafe for ChangeEventAttributes
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more