pub trait AsStorage<Backend>: ObjectType {
    type Constructor<'a>: AsStorage<Backend>;
    type StorageObject: DeserializeOwned + Identifiable + StorageObject<Backend> + Send + Serialize + Sync;
}
Expand description

Connects an object with its backend representation for a specific backend.

Required Associated Types§

source

type Constructor<'a>: AsStorage<Backend>

A type method of producing this type with a narrower lifetime. If Self has no lifetime parameters, this type should be Self. Otherwise say you have an object with one lifetime parameter, MyObject<'a>, then a concrete Constructor implementation would look like

impl<'a> AsStorage<MyBackend> for MyObject<'a> {
    type Constructor<'v> = MyObject<'v>;
}
source

type StorageObject: DeserializeOwned + Identifiable + StorageObject<Backend> + Send + Serialize + Sync

This object’s storage representation for the specified Backend.

Implementors§