Module frame_support::storage::child
source · Expand description
Operation on runtime child storages.
This module is a currently only a variant of unhashed with additional child_info.
Structs
- Results concerning an operation to remove many keys.
Enums
- Information related to a child state.
- Type of child. It does not strictly define different child type, it can also be related to technical consideration or api variant.
- The outcome of calling
storage_kill. Returned value is the number of storage items removed from the backend from making thestorage_killcall. - Different possible state version.
Functions
- Partially clear the child storage of each key-value pair.
- Check to see if
keyhas an explicit entry in storage. - Return the value of the item in storage under
key, orNoneif there is no explicit entry. - Return the value of the item in storage under
key, ordefault_valueif there is no explicit entry. - Return the value of the item in storage under
key, or the type’s default if there is no explicit entry. - Return the value of the item in storage under
key, ordefault_value()if there is no explicit entry. - Get a Vec of bytes from storage.
- Ensure
keyhas no explicit entry in storage. - kill_storageDeprecatedRemove all
storage_keykey/values - Return the length in bytes of the value without reading it.
Noneif it does not exist. - Put
valuein storage underkey. - Put a raw byte slice into storage.
- Calculate current child root value.
- Remove
keyfrom storage, returning its value if it had an explicit entry orNoneotherwise. - Return the value of the item in storage under
key, ordefault_valueif there is no explicit entry. Ensure there is no explicit entry on return. - Remove
keyfrom storage, returning its value, or, if there was no explicit entry in storage, the default for its type. - Return the value of the item in storage under
key, ordefault_value()if there is no explicit entry. Ensure there is no explicit entry on return.