pub struct PayloadVariant {
pub name: String,
pub cases: Vec<String>,
pub payload: Payload,
}Expand description
Native case covering one or more authoritative descriptor alternatives.
Fields§
§name: StringPublic Rust variant name.
cases: Vec<String>Descriptor enum value names, or oneof member names.
payload: PayloadChecked payload shape.
Trait Implementations§
Source§impl Clone for PayloadVariant
impl Clone for PayloadVariant
Source§impl Debug for PayloadVariant
impl Debug for PayloadVariant
Source§impl<'de> Deserialize<'de> for PayloadVariant
impl<'de> Deserialize<'de> for PayloadVariant
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 TryFrom<&NativePayloadVariant> for PayloadVariant
impl TryFrom<&NativePayloadVariant> for PayloadVariant
Source§type Error = AdapterError
type Error = AdapterError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Forget for PayloadVariant
impl Freeze for PayloadVariant
impl Move for PayloadVariant
impl RefUnwindSafe for PayloadVariant
impl Send for PayloadVariant
impl Sync for PayloadVariant
impl Unpin for PayloadVariant
impl UnsafeUnpin for PayloadVariant
impl UnwindSafe for PayloadVariant
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