AsUnknownVariant

Trait AsUnknownVariant 

Source
pub trait AsUnknownVariant {
    type Value: Serialize<Value>;

    // Required methods
    fn id(&self) -> u32;
    fn value(self) -> Self::Value;
}

Required Associated Types§

Required Methods§

Source

fn id(&self) -> u32

Source

fn value(self) -> Self::Value

Implementations on Foreign Types§

Source§

impl AsUnknownVariant for Infallible

Source§

type Value = Infallible

Source§

fn id(&self) -> u32

Source§

fn value(self) -> Self::Value

Implementors§