Enum borsh::schema::Fields [−][src]
pub enum Fields { NamedFields(Vec<(FieldName, Declaration)>), UnnamedFields(Vec<Declaration>), Empty, }
The collection representing the fields of a struct.
Variants
NamedFields(Vec<(FieldName, Declaration)>)
The struct with named fields.
UnnamedFields(Vec<Declaration>)
The struct with unnamed fields, structurally identical to a tuple.
The struct with no fields.
Trait Implementations
impl BorshDeserialize for Fields where
Vec<(FieldName, Declaration)>: BorshDeserialize,
Vec<Declaration>: BorshDeserialize,
[src][+]
Vec<(FieldName, Declaration)>: BorshDeserialize,
Vec<Declaration>: BorshDeserialize,
impl BorshSchema for Fields
[src][+]
impl BorshSerialize for Fields where
Vec<(FieldName, Declaration)>: BorshSerialize,
Vec<Declaration>: BorshSerialize,
[src][+]
Vec<(FieldName, Declaration)>: BorshSerialize,
Vec<Declaration>: BorshSerialize,
impl Debug for Fields
[src][+]
impl PartialEq<Fields> for Fields
[src][+]
impl StructuralPartialEq for Fields
[src]
Auto Trait Implementations
impl RefUnwindSafe for Fields
impl Send for Fields
impl Sync for Fields
impl Unpin for Fields
impl UnwindSafe for Fields
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,