[][src]Trait casbin::MgmtApi

pub trait MgmtApi: InternalApi {
#[must_use]    pub 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] pub 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] pub 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] pub 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] pub 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] pub 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] pub 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] pub 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] pub 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] pub 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
;
pub fn get_all_policy(&self) -> Vec<Vec<String>>

Notable traits for Vec<u8, Global>

impl Write for Vec<u8, Global>
;
pub fn get_named_policy(&self, ptype: &str) -> Vec<Vec<String>>

Notable traits for Vec<u8, Global>

impl Write for Vec<u8, Global>
;
pub fn get_filtered_named_policy(
        &self,
        ptype: &str,
        field_index: usize,
        field_values: Vec<String>
    ) -> Vec<Vec<String>>

Notable traits for Vec<u8, Global>

impl Write for Vec<u8, Global>
;
pub fn has_named_policy(&self, ptype: &str, params: Vec<String>) -> bool;
pub fn get_all_grouping_policy(&self) -> Vec<Vec<String>>

Notable traits for Vec<u8, Global>

impl Write for Vec<u8, Global>
;
pub fn get_named_grouping_policy(&self, ptype: &str) -> Vec<Vec<String>>

Notable traits for Vec<u8, Global>

impl Write for Vec<u8, Global>
;
pub fn get_filtered_named_grouping_policy(
        &self,
        ptype: &str,
        field_index: usize,
        field_values: Vec<String>
    ) -> Vec<Vec<String>>

Notable traits for Vec<u8, Global>

impl Write for Vec<u8, Global>
;
pub fn has_grouping_named_policy(
        &self,
        ptype: &str,
        params: Vec<String>
    ) -> bool;
pub fn get_all_named_subjects(&self, ptype: &str) -> Vec<String>

Notable traits for Vec<u8, Global>

impl Write for Vec<u8, Global>
;
pub fn get_all_named_objects(&self, ptype: &str) -> Vec<String>

Notable traits for Vec<u8, Global>

impl Write for Vec<u8, Global>
;
pub fn get_all_named_actions(&self, ptype: &str) -> Vec<String>

Notable traits for Vec<u8, Global>

impl Write for Vec<u8, Global>
;
pub fn get_all_named_roles(&self, ptype: &str) -> Vec<String>

Notable traits for Vec<u8, Global>

impl Write for Vec<u8, Global>
; #[must_use] pub 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] pub 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] pub 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] pub 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] pub 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] pub 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] pub 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] pub 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] pub 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] pub 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
, { ... }
pub fn get_policy(&self) -> Vec<Vec<String>>

Notable traits for Vec<u8, Global>

impl Write for Vec<u8, Global>
{ ... }
pub fn get_filtered_policy(
        &self,
        field_index: usize,
        field_values: Vec<String>
    ) -> Vec<Vec<String>>

Notable traits for Vec<u8, Global>

impl Write for Vec<u8, Global>
{ ... }
pub fn has_policy(&self, params: Vec<String>) -> bool { ... }
pub fn get_grouping_policy(&self) -> Vec<Vec<String>>

Notable traits for Vec<u8, Global>

impl Write for Vec<u8, Global>
{ ... }
pub fn get_filtered_grouping_policy(
        &self,
        field_index: usize,
        field_values: Vec<String>
    ) -> Vec<Vec<String>>

Notable traits for Vec<u8, Global>

impl Write for Vec<u8, Global>
{ ... }
pub fn has_grouping_policy(&self, params: Vec<String>) -> bool { ... }
pub fn get_all_subjects(&self) -> Vec<String>

Notable traits for Vec<u8, Global>

impl Write for Vec<u8, Global>
{ ... }
pub fn get_all_objects(&self) -> Vec<String>

Notable traits for Vec<u8, Global>

impl Write for Vec<u8, Global>
{ ... }
pub fn get_all_actions(&self) -> Vec<String>

Notable traits for Vec<u8, Global>

impl Write for Vec<u8, Global>
{ ... }
pub fn get_all_roles(&self) -> Vec<String>

Notable traits for Vec<u8, Global>

impl Write for Vec<u8, Global>
{ ... } }

Required methods

#[must_use]pub 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, 
[src]

#[must_use]pub 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, 
[src]

#[must_use]pub 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, 
[src]

#[must_use]pub 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, 
[src]

#[must_use]pub 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, 
[src]

#[must_use]pub 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, 
[src]

#[must_use]pub 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, 
[src]

#[must_use]pub 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, 
[src]

#[must_use]pub 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, 
[src]

#[must_use]pub 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, 
[src]

pub fn get_all_policy(&self) -> Vec<Vec<String>>

Notable traits for Vec<u8, Global>

impl Write for Vec<u8, Global>
[src]

pub fn get_named_policy(&self, ptype: &str) -> Vec<Vec<String>>

Notable traits for Vec<u8, Global>

impl Write for Vec<u8, Global>
[src]

pub fn get_filtered_named_policy(
    &self,
    ptype: &str,
    field_index: usize,
    field_values: Vec<String>
) -> Vec<Vec<String>>

Notable traits for Vec<u8, Global>

impl Write for Vec<u8, Global>
[src]

pub fn has_named_policy(&self, ptype: &str, params: Vec<String>) -> bool[src]

pub fn get_all_grouping_policy(&self) -> Vec<Vec<String>>

Notable traits for Vec<u8, Global>

impl Write for Vec<u8, Global>
[src]

pub fn get_named_grouping_policy(&self, ptype: &str) -> Vec<Vec<String>>

Notable traits for Vec<u8, Global>

impl Write for Vec<u8, Global>
[src]

pub fn get_filtered_named_grouping_policy(
    &self,
    ptype: &str,
    field_index: usize,
    field_values: Vec<String>
) -> Vec<Vec<String>>

Notable traits for Vec<u8, Global>

impl Write for Vec<u8, Global>
[src]

pub fn has_grouping_named_policy(
    &self,
    ptype: &str,
    params: Vec<String>
) -> bool
[src]

pub fn get_all_named_subjects(&self, ptype: &str) -> Vec<String>

Notable traits for Vec<u8, Global>

impl Write for Vec<u8, Global>
[src]

pub fn get_all_named_objects(&self, ptype: &str) -> Vec<String>

Notable traits for Vec<u8, Global>

impl Write for Vec<u8, Global>
[src]

pub fn get_all_named_actions(&self, ptype: &str) -> Vec<String>

Notable traits for Vec<u8, Global>

impl Write for Vec<u8, Global>
[src]

pub fn get_all_named_roles(&self, ptype: &str) -> Vec<String>

Notable traits for Vec<u8, Global>

impl Write for Vec<u8, Global>
[src]

Loading content...

Provided methods

#[must_use]pub 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, 
[src]

#[must_use]pub 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, 
[src]

#[must_use]pub 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, 
[src]

#[must_use]pub 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, 
[src]

#[must_use]pub 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, 
[src]

#[must_use]pub 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, 
[src]

#[must_use]pub 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, 
[src]

#[must_use]pub 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, 
[src]

#[must_use]pub 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, 
[src]

#[must_use]pub 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, 
[src]

pub fn get_policy(&self) -> Vec<Vec<String>>

Notable traits for Vec<u8, Global>

impl Write for Vec<u8, Global>
[src]

pub fn get_filtered_policy(
    &self,
    field_index: usize,
    field_values: Vec<String>
) -> Vec<Vec<String>>

Notable traits for Vec<u8, Global>

impl Write for Vec<u8, Global>
[src]

pub fn has_policy(&self, params: Vec<String>) -> bool[src]

pub fn get_grouping_policy(&self) -> Vec<Vec<String>>

Notable traits for Vec<u8, Global>

impl Write for Vec<u8, Global>
[src]

pub fn get_filtered_grouping_policy(
    &self,
    field_index: usize,
    field_values: Vec<String>
) -> Vec<Vec<String>>

Notable traits for Vec<u8, Global>

impl Write for Vec<u8, Global>
[src]

pub fn has_grouping_policy(&self, params: Vec<String>) -> bool[src]

pub fn get_all_subjects(&self) -> Vec<String>

Notable traits for Vec<u8, Global>

impl Write for Vec<u8, Global>
[src]

pub fn get_all_objects(&self) -> Vec<String>

Notable traits for Vec<u8, Global>

impl Write for Vec<u8, Global>
[src]

pub fn get_all_actions(&self) -> Vec<String>

Notable traits for Vec<u8, Global>

impl Write for Vec<u8, Global>
[src]

pub fn get_all_roles(&self) -> Vec<String>

Notable traits for Vec<u8, Global>

impl Write for Vec<u8, Global>
[src]

Loading content...

Implementors

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

Loading content...