Skip to main content

PolicyStoreFactory

Trait PolicyStoreFactory 

Source
pub trait PolicyStoreFactory: Send + Sync {
    // Required method
    fn build(&self, config: &Value) -> Result<Arc<dyn PolicyStore>>;
}
Expand description

Builds a PolicyStore from its [storage.<name>] TOML subsection.

Required Methods§

Source

fn build(&self, config: &Value) -> Result<Arc<dyn PolicyStore>>

Construct the policy-store backend from its config subsection.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§