Trait iota_types::storage::ObjectStore
source · pub trait ObjectStore {
// Required methods
fn get_object(&self, object_id: &ObjectID) -> Result<Option<Object>>;
fn get_object_by_key(
&self,
object_id: &ObjectID,
version: VersionNumber,
) -> Result<Option<Object>>;
// Provided methods
fn multi_get_objects(
&self,
object_ids: &[ObjectID],
) -> Result<Vec<Option<Object>>> { ... }
fn multi_get_objects_by_key(
&self,
object_keys: &[ObjectKey],
) -> Result<Vec<Option<Object>>> { ... }
}