pub struct Variant {
pub name: &'static str,
pub id: u32,
pub value: &'static Schema,
}Expand description
One explicitly tagged enum alternative.
Fields§
§name: &'static strSource variant name.
id: u32Transmitted Postcard u32 tag.
value: &'static SchemaUnit or the single payload’s encoding.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Variant
impl RefUnwindSafe for Variant
impl Send for Variant
impl Sync for Variant
impl Unpin for Variant
impl UnsafeUnpin for Variant
impl UnwindSafe for Variant
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