[][src]Enum generic_core::value::Variant

pub enum Variant {
    TupleVariant {
        type_name: String,
        variant_name: String,
        data: Vec<Value>,
    },
    StructVariant {
        type_name: String,
        variant_name: String,
        data: HashMap<String, Value>,
    },
    UnitVariant {
        type_name: String,
        variant_name: String,
    },
}

Variants

TupleVariant

Fields of TupleVariant

type_name: Stringvariant_name: Stringdata: Vec<Value>
StructVariant

Fields of StructVariant

type_name: Stringvariant_name: Stringdata: HashMap<String, Value>
UnitVariant

Fields of UnitVariant

type_name: Stringvariant_name: String

Trait Implementations

impl Clone for Variant[src]

impl Debug for Variant[src]

Auto Trait Implementations

impl Send for Variant

impl Unpin for Variant

impl Sync for Variant

impl UnwindSafe for Variant

impl RefUnwindSafe for Variant

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]