pub struct Event {
pub created_date: Option<OffsetDateTime>,
pub detailed_message: Option<FormattedEventMessage>,
pub event_type: Option<String>,
pub id: Option<String>,
pub message: Option<FormattedEventMessage>,
pub publisher_id: Option<String>,
pub resource: Option<Value>,
pub resource_containers: Option<Value>,
pub resource_version: Option<String>,
pub session_token: Option<SessionToken>,
}Expand description
Encapsulates the properties of an event.
Fields§
§created_date: Option<OffsetDateTime>Gets or sets the UTC-based date and time that this event was created.
detailed_message: Option<FormattedEventMessage>Provides different formats of an event message
event_type: Option<String>Gets or sets the type of this event.
id: Option<String>Gets or sets the unique identifier of this event.
message: Option<FormattedEventMessage>Provides different formats of an event message
publisher_id: Option<String>Gets or sets the identifier of the publisher that raised this event.
resource: Option<Value>Gets or sets the data associated with this event.
resource_containers: Option<Value>Gets or sets the resource containers.
resource_version: Option<String>Gets or sets the version of the data associated with this event.
session_token: Option<SessionToken>Represents a session token to be attached in Events for Consumer actions that need it.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Event
impl<'de> Deserialize<'de> for Event
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
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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