Trait authzen_core::AsStorage
source · 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§
sourcetype Constructor<'a>: AsStorage<Backend>
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>;
}
sourcetype StorageObject: DeserializeOwned + Identifiable + StorageObject<Backend> + Send + Serialize + Sync
type StorageObject: DeserializeOwned + Identifiable + StorageObject<Backend> + Send + Serialize + Sync
This object’s storage representation for the specified Backend.