pub struct PayloadField {
pub name: String,
pub source: FieldSource,
pub representation: PayloadType,
}Expand description
One payload field and its checked representation.
Fields§
§name: StringName used in a struct variant; also validated for tuple payloads.
source: FieldSourceCanonical source field.
representation: PayloadTypeRestricted field representation.
Trait Implementations§
Source§impl Clone for PayloadField
impl Clone for PayloadField
Source§impl Debug for PayloadField
impl Debug for PayloadField
Source§impl<'de> Deserialize<'de> for PayloadField
impl<'de> Deserialize<'de> for PayloadField
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<&NativePayloadField> for PayloadField
impl TryFrom<&NativePayloadField> for PayloadField
Source§type Error = AdapterError
type Error = AdapterError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Forget for PayloadField
impl Freeze for PayloadField
impl Move for PayloadField
impl RefUnwindSafe for PayloadField
impl Send for PayloadField
impl Sync for PayloadField
impl Unpin for PayloadField
impl UnsafeUnpin for PayloadField
impl UnwindSafe for PayloadField
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