[][src]Enum concordium_std::schema::Fields

pub enum Fields {
    Named(Vec<(String, Type), Global>),
    Unnamed(Vec<Type, Global>),
    None,
}

Schema for the fields of a struct or some enum variant.

Variants

Named fields, e.g., struct Foo {x: u64, y: u32}.

Unnamed(Vec<Type, Global>)

Unnamed fields, e.g., struct Foo(u64, u32)

None

No fields. Note that this is distinct from an empty set of named or unnamed fields. That is, in Rust there is a (albeit trivial) difference between struct Foo {}, struct Foo, and struct Foo(), all of which are valid, but will have different representations.

Trait Implementations

impl Clone for Fields[src]

impl Debug for Fields[src]

impl Deserial for Fields[src]

impl Eq for Fields[src]

impl PartialEq<Fields> for Fields[src]

impl Serial for Fields[src]

impl StructuralEq for Fields[src]

impl StructuralPartialEq for Fields[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

impl<A> Serialize for A where
    A: Serial + Deserial
[src]

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

type Owned = T

The resulting type after obtaining ownership.

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.