Trait PolicyStore
Source pub trait PolicyStore: Send + Sync {
// Required methods
fn policy_set<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = PolicySet> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_policies<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Vec<Policy>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_policy<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Policy, Box<dyn Error>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn create_policy<'life0, 'life1, 'async_trait>(
&'life0 self,
policy: &'life1 Policy,
schema: Option<Schema>,
) -> Pin<Box<dyn Future<Output = Result<Policy, Box<dyn Error>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn update_policies<'life0, 'async_trait>(
&'life0 self,
policies: Vec<Policy>,
schema: Option<Schema>,
) -> Pin<Box<dyn Future<Output = Result<Vec<Policy>, Box<dyn Error>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn update_policy<'life0, 'async_trait>(
&'life0 self,
id: String,
policy: PolicyUpdate,
schema: Option<Schema>,
) -> Pin<Box<dyn Future<Output = Result<Policy, Box<dyn Error>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn delete_policy<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Policy, Box<dyn Error>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}