[][src]Trait casbin::MgmtApi

pub trait MgmtApi: InternalApi {
#[must_use]    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
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
#[must_use] 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
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
#[must_use] 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
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
#[must_use] 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
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
#[must_use] 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
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
#[must_use] 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
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
#[must_use] 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
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
#[must_use] 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
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
#[must_use] 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
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
#[must_use] 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
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: '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>; #[must_use] fn add_policy<'life0, 'async_trait>(
        &'life0 mut self,
        params: Vec<String>
    ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: Send + 'async_trait
, { ... }
#[must_use] fn add_policies<'life0, 'async_trait>(
        &'life0 mut self,
        paramss: Vec<Vec<String>>
    ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: Send + 'async_trait
, { ... }
#[must_use] fn remove_policy<'life0, 'async_trait>(
        &'life0 mut self,
        params: Vec<String>
    ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: Send + 'async_trait
, { ... }
#[must_use] fn remove_policies<'life0, 'async_trait>(
        &'life0 mut self,
        paramss: Vec<Vec<String>>
    ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: Send + 'async_trait
, { ... }
#[must_use] fn add_grouping_policy<'life0, 'async_trait>(
        &'life0 mut self,
        params: Vec<String>
    ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: Send + 'async_trait
, { ... }
#[must_use] 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
        'life0: 'async_trait,
        Self: Send + 'async_trait
, { ... }
#[must_use] fn remove_grouping_policy<'life0, 'async_trait>(
        &'life0 mut self,
        params: Vec<String>
    ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: Send + 'async_trait
, { ... }
#[must_use] 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
        'life0: 'async_trait,
        Self: Send + 'async_trait
, { ... }
#[must_use] 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
        'life0: 'async_trait,
        Self: Send + 'async_trait
, { ... }
#[must_use] 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
        'life0: 'async_trait,
        Self: Send + '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> { ... } }

Required methods

#[must_use]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
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 

#[must_use]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
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 

#[must_use]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
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 

#[must_use]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
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 

#[must_use]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
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 

#[must_use]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
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 

#[must_use]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
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 

#[must_use]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
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 

#[must_use]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
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 

#[must_use]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
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: '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>

Loading content...

Provided methods

#[must_use]fn add_policy<'life0, 'async_trait>(
    &'life0 mut self,
    params: Vec<String>
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: Send + 'async_trait, 

#[must_use]fn add_policies<'life0, 'async_trait>(
    &'life0 mut self,
    paramss: Vec<Vec<String>>
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: Send + 'async_trait, 

#[must_use]fn remove_policy<'life0, 'async_trait>(
    &'life0 mut self,
    params: Vec<String>
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: Send + 'async_trait, 

#[must_use]fn remove_policies<'life0, 'async_trait>(
    &'life0 mut self,
    paramss: Vec<Vec<String>>
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: Send + 'async_trait, 

#[must_use]fn add_grouping_policy<'life0, 'async_trait>(
    &'life0 mut self,
    params: Vec<String>
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: Send + 'async_trait, 

#[must_use]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
    'life0: 'async_trait,
    Self: Send + 'async_trait, 

#[must_use]fn remove_grouping_policy<'life0, 'async_trait>(
    &'life0 mut self,
    params: Vec<String>
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: Send + 'async_trait, 

#[must_use]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
    'life0: 'async_trait,
    Self: Send + 'async_trait, 

#[must_use]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
    'life0: 'async_trait,
    Self: Send + 'async_trait, 

#[must_use]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
    'life0: 'async_trait,
    Self: Send + '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>

Loading content...

Implementors

impl<T> MgmtApi for T where
    T: InternalApi
[src]

Loading content...