Enum switchboard_aggregator::borsh::schema::Fields [−][src]
pub enum Fields {
NamedFields(Vec<(String, String), Global>),
UnnamedFields(Vec<String, Global>),
Empty,
}
Expand description
The collection representing the fields of a struct.
Variants
The struct with named fields.
The struct with unnamed fields, structurally identical to a tuple.
The struct with no fields.
Trait Implementations
impl BorshDeserialize for Fields where
Vec<(String, String), Global>: BorshDeserialize,
Vec<String, Global>: BorshDeserialize,
impl BorshDeserialize for Fields where
Vec<(String, String), Global>: BorshDeserialize,
Vec<String, Global>: BorshDeserialize,
Get the name of the type without brackets.
pub fn add_definitions_recursively(
definitions: &mut HashMap<String, Definition, RandomState>
)
pub fn add_definitions_recursively(
definitions: &mut HashMap<String, Definition, RandomState>
)
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: String,
definition: Definition,
definitions: &mut HashMap<String, Definition, RandomState>
)
fn add_definition(
declaration: String,
definition: Definition,
definitions: &mut HashMap<String, Definition, RandomState>
)
Helper method to add a single type definition to the map.