Trait fuel_core_storage::StorageInspect
pub trait StorageInspect<Type>where
Type: Mappable,{
type Error;
// Required methods
fn get(
&self,
key: &<Type as Mappable>::Key
) -> Result<Option<Cow<'_, <Type as Mappable>::OwnedValue>>, Self::Error>;
fn contains_key(
&self,
key: &<Type as Mappable>::Key
) -> Result<bool, Self::Error>;
}
Expand description
Base read storage trait for Fuel infrastructure.
Generic should implement Mappable
trait with all storage type information.