Trait fuel_storage::StorageInspect
source · [−]pub trait StorageInspect<Type: Mappable> {
type Error;
fn get(
&self,
key: &Type::Key
) -> Result<Option<Cow<'_, Type::GetValue>>, Self::Error>;
fn contains_key(&self, key: &Type::Key) -> Result<bool, Self::Error>;
}
Expand description
Base read storage trait for Fuel infrastructure.
Generic should implement Mappable
trait with all storage type information.
Required Associated Types
Required Methods
Retrieve Cow<Value>
such as Key->Value
.