Trait fuel_storage::StorageMutate
source · pub trait StorageMutate<Type: Mappable>: StorageInspect<Type> {
// Required methods
fn insert(
&mut self,
key: &Type::Key,
value: &Type::Value,
) -> Result<Option<Type::OwnedValue>, Self::Error>;
fn remove(
&mut self,
key: &Type::Key,
) -> Result<Option<Type::OwnedValue>, Self::Error>;
}
Expand description
Base storage trait for Fuel infrastructure.
Generic should implement Mappable
trait with all storage type information.