pub trait RoleBackend: Send + Sync {
// Required methods
fn create_role<'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
params: RoleCreate,
) -> Pin<Box<dyn Future<Output = Result<Role, RoleProviderError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn delete_role<'a, 'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
id: &'a str,
) -> Pin<Box<dyn Future<Output = Result<(), RoleProviderError>> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_role<'a, 'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
id: &'a str,
) -> Pin<Box<dyn Future<Output = Result<Option<Role>, RoleProviderError>> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn expand_implied_roles<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
roles: &'life2 mut Vec<RoleRef>,
) -> Pin<Box<dyn Future<Output = Result<(), RoleProviderError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn list_imply_rules<'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
resolve: bool,
) -> Pin<Box<dyn Future<Output = Result<BTreeMap<String, BTreeSet<String>>, RoleProviderError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn list_roles<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
params: &'life2 RoleListParameters,
) -> Pin<Box<dyn Future<Output = Result<Vec<Role>, RoleProviderError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}Required Methods§
Sourcefn create_role<'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
params: RoleCreate,
) -> Pin<Box<dyn Future<Output = Result<Role, RoleProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn create_role<'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
params: RoleCreate,
) -> Pin<Box<dyn Future<Output = Result<Role, RoleProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Create Role.
Sourcefn delete_role<'a, 'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
id: &'a str,
) -> Pin<Box<dyn Future<Output = Result<(), RoleProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete_role<'a, 'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
id: &'a str,
) -> Pin<Box<dyn Future<Output = Result<(), RoleProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Delete a role by the ID.
Sourcefn get_role<'a, 'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
id: &'a str,
) -> Pin<Box<dyn Future<Output = Result<Option<Role>, RoleProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_role<'a, 'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
id: &'a str,
) -> Pin<Box<dyn Future<Output = Result<Option<Role>, RoleProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get single role by ID
Sourcefn expand_implied_roles<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
roles: &'life2 mut Vec<RoleRef>,
) -> Pin<Box<dyn Future<Output = Result<(), RoleProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn expand_implied_roles<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
roles: &'life2 mut Vec<RoleRef>,
) -> Pin<Box<dyn Future<Output = Result<(), RoleProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Expand implied roles.
Sourcefn list_imply_rules<'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
resolve: bool,
) -> Pin<Box<dyn Future<Output = Result<BTreeMap<String, BTreeSet<String>>, RoleProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn list_imply_rules<'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
resolve: bool,
) -> Pin<Box<dyn Future<Output = Result<BTreeMap<String, BTreeSet<String>>, RoleProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
List role imply rules.
Sourcefn list_roles<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
params: &'life2 RoleListParameters,
) -> Pin<Box<dyn Future<Output = Result<Vec<Role>, RoleProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn list_roles<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
state: &'life1 ServiceState,
params: &'life2 RoleListParameters,
) -> Pin<Box<dyn Future<Output = Result<Vec<Role>, RoleProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
List Roles.