[−][src]Struct cloudevents::v02::CloudEvent
Cloud event definition
Methods
impl CloudEvent
[src]
pub fn event_type(&self) -> &str
[src]
Get the event type
pub fn source(&self) -> &str
[src]
Get the source
pub fn event_id(&self) -> &str
[src]
Get the event id
pub fn event_time(&self) -> Option<&DateTime<FixedOffset>>
[src]
Get the event time
pub fn schema_url(&self) -> Option<&str>
[src]
Get the schemaurl
pub fn data(&self) -> Option<&Data>
[src]
Get the data
pub fn extensions(&self) -> Option<&HashMap<String, ExtensionValue>>
[src]
Get the extensions
Trait Implementations
impl PartialEq<CloudEvent> for CloudEvent
[src]
fn eq(&self, other: &CloudEvent) -> bool
[src]
fn ne(&self, other: &CloudEvent) -> bool
[src]
impl Debug for CloudEvent
[src]
impl Serialize for CloudEvent
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl Deserialize<'static> for CloudEvent
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'static>,
[src]
__D: Deserializer<'static>,
Auto Trait Implementations
impl Send for CloudEvent
impl Sync for CloudEvent
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,