pub enum PayloadDescriptor {
Event(EventPayloadDescriptor),
Report(ReportPayloadDescriptor),
}Expand description
A payload descriptor of either flavour, discriminated by objectType.
Variants§
Event(EventPayloadDescriptor)
Describes event payloads.
Report(ReportPayloadDescriptor)
Describes report payloads.
Trait Implementations§
Source§impl Clone for PayloadDescriptor
impl Clone for PayloadDescriptor
Source§impl Debug for PayloadDescriptor
impl Debug for PayloadDescriptor
Source§impl<'de> Deserialize<'de> for PayloadDescriptor
impl<'de> Deserialize<'de> for PayloadDescriptor
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 From<EventPayloadDescriptor> for PayloadDescriptor
impl From<EventPayloadDescriptor> for PayloadDescriptor
Source§fn from(descriptor: EventPayloadDescriptor) -> Self
fn from(descriptor: EventPayloadDescriptor) -> Self
Converts to this type from the input type.
Source§impl From<ReportPayloadDescriptor> for PayloadDescriptor
impl From<ReportPayloadDescriptor> for PayloadDescriptor
Source§fn from(descriptor: ReportPayloadDescriptor) -> Self
fn from(descriptor: ReportPayloadDescriptor) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PayloadDescriptor
impl PartialEq for PayloadDescriptor
Source§impl Serialize for PayloadDescriptor
impl Serialize for PayloadDescriptor
impl StructuralPartialEq for PayloadDescriptor
Auto Trait Implementations§
impl Forget for PayloadDescriptor
impl Freeze for PayloadDescriptor
impl Move for PayloadDescriptor
impl RefUnwindSafe for PayloadDescriptor
impl Send for PayloadDescriptorwhere
RawVecInner: Send,
impl Sync for PayloadDescriptorwhere
RawVecInner: Sync,
impl Unpin for PayloadDescriptor
impl UnsafeUnpin for PayloadDescriptor
impl UnwindSafe for PayloadDescriptorwhere
RawVecInner: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more