Trait akd::storage::Storable [−][src]
pub trait Storable: Clone + Serialize + DeserializeOwned + Sync {
type Key: Clone + Serialize + Eq + Hash + Send + Sync;
fn data_type() -> StorageType;
fn get_id(&self) -> Self::Key;
}
Expand description
Storable represents an item which can be stored in the storage layer
Associated Types
Required methods
fn data_type() -> StorageType
fn data_type() -> StorageType
Must return a valid storage type