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

This particular storage will have a key type

Required methods

Must return a valid storage type

FIXME: Needs docs

Implementors