Struct borsh::schema::BorshSchemaContainer [−][src]
pub struct BorshSchemaContainer { pub declaration: Declaration, pub definitions: HashMap<Declaration, Definition>, }
Expand description
All schema information needed to deserialize a single type.
Fields
declaration: Declaration
Declaration of the type.
definitions: HashMap<Declaration, Definition>
All definitions needed to deserialize the given type.
Trait Implementations
impl BorshDeserialize for BorshSchemaContainer where
Declaration: BorshDeserialize,
HashMap<Declaration, Definition>: BorshDeserialize,
[src]
impl BorshDeserialize for BorshSchemaContainer where
Declaration: BorshDeserialize,
HashMap<Declaration, Definition>: BorshDeserialize,
[src]impl BorshSchema for BorshSchemaContainer where
Declaration: BorshSchema,
HashMap<Declaration, Definition>: BorshSchema,
[src]
impl BorshSchema for BorshSchemaContainer where
Declaration: BorshSchema,
HashMap<Declaration, Definition>: BorshSchema,
[src]Get the name of the type without brackets.
Recursively, using DFS, add type definitions required for this type. For primitive types this is an empty map. Type definition explains how to serialize/deserialize a type. Read more
fn add_definition(
declaration: Declaration,
definition: Definition,
definitions: &mut HashMap<Declaration, Definition>
)
[src]
fn add_definition(
declaration: Declaration,
definition: Definition,
definitions: &mut HashMap<Declaration, Definition>
)
[src]Helper method to add a single type definition to the map.
impl BorshSerialize for BorshSchemaContainer where
Declaration: BorshSerialize,
HashMap<Declaration, Definition>: BorshSerialize,
[src]
impl BorshSerialize for BorshSchemaContainer where
Declaration: BorshSerialize,
HashMap<Declaration, Definition>: BorshSerialize,
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.