No Inherit DocReadonly[toOptionalcreatedOptionalinitialOptionalis(internal usage) Indicates that the value was created via a fallback. This is used when with data specified in the metadata when the storage entry is empty.
With metadata fallback values (available as defaults on most storage entries) any empty storage item should erturn the default. (This is the same as the implementation on the Bizinikiwi runtime)
ReadonlyregistryReadonlysizeStatic Readonly[species]Returns an iterable of entries in the map.
true if an element in the Map existed and has been removed, or false if the element does not exist.
Returns an iterable of key, value pairs for every entry in the map.
The name of the entry to retrieve
boolean indicating whether an element with the specified key exists or not.
Returns an iterable of keys in the map
Adds a new element with a specified key and value to the Map. If an element with the same key already exists, the element will be updated.
Returns an iterable of values in the map
Staticwith
Name
Struct
Description
A Struct defines an Object with key-value pairs - where the values are Codec values. It removes a lot of repetition from the actual coding, define a structure type, pass it the key/Codec values in the constructor and it manages the decoding. It is important that the constructor values matches 100% to the order in th Rust code, i.e. don't go crazy and make it alphabetical, it needs to decoded in the specific defined order.