pub struct DispatcherVariant {
pub kind: String,
pub fields: Vec<String>,
}Expand description
One variant of a typed Adapter quirk enum, surfaced via
Adapter::dispatcher_reflection. Mirrors TypedDispatcher’s
per-variant reflection without forcing the trait to carry a
generic Quirk associated type.
Fields§
§kind: StringKebab-case serde tag the runtime emits.
fields: Vec<String>Field names declared on the variant (named fields only). Unit variants serialize as an empty Vec.
Trait Implementations§
Source§impl Clone for DispatcherVariant
impl Clone for DispatcherVariant
Source§fn clone(&self) -> DispatcherVariant
fn clone(&self) -> DispatcherVariant
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DispatcherVariant
impl Debug for DispatcherVariant
Source§impl<'de> Deserialize<'de> for DispatcherVariant
impl<'de> Deserialize<'de> for DispatcherVariant
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
Auto Trait Implementations§
impl Freeze for DispatcherVariant
impl RefUnwindSafe for DispatcherVariant
impl Send for DispatcherVariant
impl Sync for DispatcherVariant
impl Unpin for DispatcherVariant
impl UnsafeUnpin for DispatcherVariant
impl UnwindSafe for DispatcherVariant
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