pub struct Metadata {
pub version: [u32; 3],
pub methods: Vec<MethodMetadata>,
}
Expand description
Metadata of the contract.
Fields
version: [u32; 3]
Semver of the metadata.
methods: Vec<MethodMetadata>
Metadata of all methods.
Implementations
Trait Implementations
impl BorshDeserialize for Metadata where
[u32; 3]: BorshDeserialize,
Vec<MethodMetadata>: BorshDeserialize,
impl BorshDeserialize for Metadata where
[u32; 3]: BorshDeserialize,
Vec<MethodMetadata>: BorshDeserialize,
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: 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.