pub enum Payload {
Unit,
Tuple {
field: PayloadField,
},
Struct {
fields: Vec<PayloadField>,
},
Port {
name: String,
},
}Expand description
Shape of one native enum alternative.
Variants§
Unit
No payload.
Tuple
A single tuple field.
Fields
§
field: PayloadFieldStruct
Named fields.
Fields
§
fields: Vec<PayloadField>Port
A borrowed provider capability; never a portable field.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Payload
impl<'de> Deserialize<'de> for Payload
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<&NativePayload> for Payload
impl TryFrom<&NativePayload> for Payload
Source§type Error = AdapterError
type Error = AdapterError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Forget for Payload
impl Freeze for Payload
impl Move for Payload
impl RefUnwindSafe for Payload
impl Send for Payload
impl Sync for Payload
impl Unpin for Payload
impl UnsafeUnpin for Payload
impl UnwindSafe for Payload
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