casbinTrait MgmtApi
Source pub trait MgmtApi: InternalApi {
Show 42 methods
// Required methods
fn add_named_policy<'life0, 'life1, 'async_trait>(
&'life0 mut self,
ptype: &'life1 str,
params: Vec<String>,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn add_named_policies<'life0, 'life1, 'async_trait>(
&'life0 mut self,
ptype: &'life1 str,
paramss: Vec<Vec<String>>,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn remove_named_policy<'life0, 'life1, 'async_trait>(
&'life0 mut self,
ptype: &'life1 str,
params: Vec<String>,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn remove_named_policies<'life0, 'life1, 'async_trait>(
&'life0 mut self,
ptype: &'life1 str,
paramss: Vec<Vec<String>>,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn add_named_grouping_policy<'life0, 'life1, 'async_trait>(
&'life0 mut self,
ptype: &'life1 str,
params: Vec<String>,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn add_named_grouping_policies<'life0, 'life1, 'async_trait>(
&'life0 mut self,
ptype: &'life1 str,
paramss: Vec<Vec<String>>,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn remove_named_grouping_policy<'life0, 'life1, 'async_trait>(
&'life0 mut self,
ptype: &'life1 str,
params: Vec<String>,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn remove_named_grouping_policies<'life0, 'life1, 'async_trait>(
&'life0 mut self,
ptype: &'life1 str,
paramss: Vec<Vec<String>>,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn remove_filtered_named_policy<'life0, 'life1, 'async_trait>(
&'life0 mut self,
ptype: &'life1 str,
field_index: usize,
field_values: Vec<String>,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn remove_filtered_named_grouping_policy<'life0, 'life1, 'async_trait>(
&'life0 mut self,
ptype: &'life1 str,
field_index: usize,
field_values: Vec<String>,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_all_policy(&self) -> Vec<Vec<String>>;
fn get_named_policy(&self, ptype: &str) -> Vec<Vec<String>>;
fn get_filtered_named_policy(
&self,
ptype: &str,
field_index: usize,
field_values: Vec<String>,
) -> Vec<Vec<String>>;
fn has_named_policy(&self, ptype: &str, params: Vec<String>) -> bool;
fn get_all_grouping_policy(&self) -> Vec<Vec<String>>;
fn get_named_grouping_policy(&self, ptype: &str) -> Vec<Vec<String>>;
fn get_filtered_named_grouping_policy(
&self,
ptype: &str,
field_index: usize,
field_values: Vec<String>,
) -> Vec<Vec<String>>;
fn has_grouping_named_policy(
&self,
ptype: &str,
params: Vec<String>,
) -> bool;
fn get_all_named_subjects(&self, ptype: &str) -> Vec<String>;
fn get_all_named_objects(&self, ptype: &str) -> Vec<String>;
fn get_all_named_actions(&self, ptype: &str) -> Vec<String>;
fn get_all_named_roles(&self, ptype: &str) -> Vec<String>;
// Provided methods
fn add_policy<'life0, 'async_trait>(
&'life0 mut self,
params: Vec<String>,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait { ... }
fn add_policies<'life0, 'async_trait>(
&'life0 mut self,
paramss: Vec<Vec<String>>,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait { ... }
fn remove_policy<'life0, 'async_trait>(
&'life0 mut self,
params: Vec<String>,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait { ... }
fn remove_policies<'life0, 'async_trait>(
&'life0 mut self,
paramss: Vec<Vec<String>>,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait { ... }
fn add_grouping_policy<'life0, 'async_trait>(
&'life0 mut self,
params: Vec<String>,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait { ... }
fn add_grouping_policies<'life0, 'async_trait>(
&'life0 mut self,
paramss: Vec<Vec<String>>,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait { ... }
fn remove_grouping_policy<'life0, 'async_trait>(
&'life0 mut self,
params: Vec<String>,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait { ... }
fn remove_grouping_policies<'life0, 'async_trait>(
&'life0 mut self,
paramss: Vec<Vec<String>>,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait { ... }
fn remove_filtered_policy<'life0, 'async_trait>(
&'life0 mut self,
field_index: usize,
field_values: Vec<String>,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait { ... }
fn remove_filtered_grouping_policy<'life0, 'async_trait>(
&'life0 mut self,
field_index: usize,
field_values: Vec<String>,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait { ... }
fn get_policy(&self) -> Vec<Vec<String>> { ... }
fn get_filtered_policy(
&self,
field_index: usize,
field_values: Vec<String>,
) -> Vec<Vec<String>> { ... }
fn has_policy(&self, params: Vec<String>) -> bool { ... }
fn get_grouping_policy(&self) -> Vec<Vec<String>> { ... }
fn get_filtered_grouping_policy(
&self,
field_index: usize,
field_values: Vec<String>,
) -> Vec<Vec<String>> { ... }
fn has_grouping_policy(&self, params: Vec<String>) -> bool { ... }
fn get_all_subjects(&self) -> Vec<String> { ... }
fn get_all_objects(&self) -> Vec<String> { ... }
fn get_all_actions(&self) -> Vec<String> { ... }
fn get_all_roles(&self) -> Vec<String> { ... }
}