pub trait StorageAdapter {
type Error: Error + Send + Sync + 'static;
// Required methods
fn resolve(&self, entity: EntityRef) -> Result<Option<u64>, Self::Error>;
fn get_property(
&self,
entity: EntityRef,
key: &str,
) -> Result<Value, Self::Error>;
fn set_property(
&mut self,
entity: EntityRef,
key: &str,
value: Value,
) -> Result<(), Self::Error>;
fn remove_property(
&mut self,
entity: EntityRef,
key: &str,
) -> Result<(), Self::Error>;
}Expand description
Optional adapter trait for storage-backed engines that map Plexus refs to internal storage handles/IDs.