pub struct EventDefinition {
pub name: String,
pub source: Option<String>,
pub type: Option<String>,
pub data: Option<Value>,
}
Expand description
Event definition
Fields§
§name: String
Event name
source: Option<String>
Event source
type: Option<String>
Event type
data: Option<Value>
Event data schema
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 · 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<'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
Auto Trait Implementations§
impl Freeze for EventDefinition
impl RefUnwindSafe for EventDefinition
impl Send for EventDefinition
impl Sync for EventDefinition
impl Unpin 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