Crate submetadatan
source ·Expand description
Minimal implementation of Substrate metadata.
Modules
Builders for defining metadata for variant types (enums), and composite types (structs).
They are designed to allow only construction of valid definitions.
Provides form definitions.
Interning data structure and associated symbol definitions.
Exports from
std
, core
and alloc
crates.Parity SCALE Codec
Metadata v14
Macros
Construct a vector of
TypeParameter
s from pairs of the name and the concrete type.Takes a number of types and returns a vector that contains their respective
MetaType
instances.Construct a vector of
TypeParameter
instances with the name of the type parameter,
together with its concrete MetaType
.Structs
Metadata of the extrinsic used by the runtime.
A field of a struct-like data type.
The metadata of a runtime.
A metatype abstraction.
Stores the encoded
RuntimeMetadata
as raw bytes.Metadata for all calls in a pallet
Metadata about one pallet constant.
Metadata about a pallet error.
Metadata about the pallet Event type.
All metadata about an runtime pallet.
All metadata of the pallet’s storage.
Represents the path of a type definition.
A read-only registry containing types in their portable form for serialization.
Construct a
PortableRegistry
.The registry for space-efficient storage of type identifiers and
definitions.
Metadata prefixed by a u32 for reserved usage
The metadata of a runtime.
Metadata of an extrinsic’s signed extension.
Metadata about one storage entry.
An array type.
Type describing a [
bitvec::vec::BitVec
].A type wrapped in [
Compact
].A composite type, consisting of either named (struct) or unnamed (tuple
struct) fields
A type to refer to a sequence of elements of the same type.
A type to refer to tuple types.
A Enum type (consisting of variants).
A generic type parameter.
A struct enum variant with either named (struct) or unnamed (tuple struct)
fields.
Enums
Main error.
An error that may be encountered upon constructing namespaces.
The metadata of a runtime.
The version ID encoded/decoded through
the enum nature of
RuntimeMetadata
.Enum that should fail.
A storage entry modifier indicates how a storage entry is returned when fetched and what the value will be if the key is not present.
Specifically this refers to the “return type” when fetching a storage entry, and what the value will be if the key is not present.
A type of storage value.
Hasher used by storage maps
The possible types a SCALE encodable Rust value could have.
A primitive Rust type.
Constants
Current prefix of metadata
Traits
Convert the type definition into the portable form using a registry.
Convenience trait for implementors, combining
TypeInfo
and 'static
bounds.Implementors return their meta type information.
Functions
Compare two
StorageEntryMetadata
and return the bool
result.Compare two
StorageEntryType
and return the bool
result.Compare two
TypeParameter
and return the bool
result.Compare two
UntrackedSymbol
and return the bool
result.Returns the runtime bridge to the types compile-time type information.
Try extracting
LatestRuntimeMetadata
from RuntimeMetadataPrefixed
.Type Definitions
Main result.
Latest runtime metadata