pub struct EventDefinition {
pub id: Option<String>,
pub source: Option<String>,
pub type_: Option<String>,
pub time: Option<String>,
pub subject: Option<String>,
pub data_content_type: Option<String>,
pub data_schema: Option<String>,
pub data: Option<Value>,
pub with: HashMap<String, Value>,
}Expand description
Represents the definition of an event
Fields§
§id: Option<String>Gets/sets the unique event identifier
source: Option<String>Gets/sets the event source (URI template or runtime expression)
type_: Option<String>Gets/sets the event type
time: Option<String>Gets/sets the event time (ISO 8601 date-time string or runtime expression)
subject: Option<String>Gets/sets the event subject
data_content_type: Option<String>Gets/sets the data content type
data_schema: Option<String>Gets/sets the data schema (URI template or runtime expression)
data: Option<Value>Gets/sets the event data payload
with: HashMap<String, Value>Gets/sets a key/value mapping of the attributes of the configured event
Implementations§
Trait Implementations§
Source§impl Clone for EventDefinition
impl Clone for EventDefinition
Source§fn clone(&self) -> EventDefinition
fn clone(&self) -> EventDefinition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EventDefinition
impl Debug for EventDefinition
Source§impl Default for EventDefinition
impl Default for EventDefinition
Source§fn default() -> EventDefinition
fn default() -> EventDefinition
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EventDefinition
impl<'de> Deserialize<'de> for EventDefinition
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 EventDefinition
impl PartialEq for EventDefinition
Source§fn eq(&self, other: &EventDefinition) -> bool
fn eq(&self, other: &EventDefinition) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for EventDefinition
impl Serialize for EventDefinition
impl StructuralPartialEq for EventDefinition
Auto Trait Implementations§
impl Freeze for EventDefinition
impl RefUnwindSafe for EventDefinition
impl Send for EventDefinition
impl Sync for EventDefinition
impl Unpin for EventDefinition
impl UnsafeUnpin for EventDefinition
impl UnwindSafe for EventDefinition
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