Struct fuel_core_interfaces::db::ContractsState
source · pub struct ContractsState<'a>(_);
Expand description
The storage table for contract’s hashed key-value state.
Lifetime is for optimization to avoid clone
.
Trait Implementations§
source§impl<'a> Mappable for ContractsState<'a>
impl<'a> Mappable for ContractsState<'a>
§type Key = (&'a ContractId, &'a Bytes32)
type Key = (&'a ContractId, &'a Bytes32)
The table key is combination of the ContractId
and Bytes32
hash of the value’s key.
§type GetValue = <ContractsState<'a> as Mappable>::SetValue
type GetValue = <ContractsState<'a> as Mappable>::SetValue
The value type is used while getting the value from the storage.