Struct fuel_core_storage::tables::ContractsInfo
source · pub struct ContractsInfo;
Expand description
The storage table for contract’s additional information as salt, root hash, etc.
Trait Implementations§
source§impl Mappable for ContractsInfo
impl Mappable for ContractsInfo
§type Value = (Salt, Bytes32)
type Value = (Salt, Bytes32)
Salt
- is the salt used during creation of the contract for uniques.
Bytes32
- is the root hash of the contract’s code.
§type Key = <ContractsInfo as Mappable>::OwnedKey
type Key = <ContractsInfo as Mappable>::OwnedKey
The key type is used during interaction with the storage. In most cases, it is the same
as
Self::OwnedKey
.§type OwnedValue = <ContractsInfo as Mappable>::Value
type OwnedValue = <ContractsInfo as Mappable>::Value
The owned type of the
Value
retrieving from the storage.source§impl StorageInspect<ContractsInfo> for MemoryStorage
impl StorageInspect<ContractsInfo> for MemoryStorage
type Error = Infallible
source§fn get(
&self,
key: &ContractId
) -> Result<Option<Cow<'_, (Salt, Bytes32)>>, Infallible>
fn get( &self, key: &ContractId ) -> Result<Option<Cow<'_, (Salt, Bytes32)>>, Infallible>
Retrieve
Cow<Value>
such as Key->Value
.source§fn contains_key(&self, key: &ContractId) -> Result<bool, Infallible>
fn contains_key(&self, key: &ContractId) -> Result<bool, Infallible>
Return
true
if there is a Key
mapping to a value in the storage.source§impl StorageMutate<ContractsInfo> for MemoryStorage
impl StorageMutate<ContractsInfo> for MemoryStorage
Auto Trait Implementations§
impl RefUnwindSafe for ContractsInfo
impl Send for ContractsInfo
impl Sync for ContractsInfo
impl Unpin for ContractsInfo
impl UnwindSafe for ContractsInfo
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more