Struct ockam_abac::PolicySqlxDatabase
source · pub struct PolicySqlxDatabase { /* private fields */ }
Implementations§
Trait Implementations§
source§impl Clone for PolicySqlxDatabase
impl Clone for PolicySqlxDatabase
source§fn clone(&self) -> PolicySqlxDatabase
fn clone(&self) -> PolicySqlxDatabase
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl PoliciesRepository for PolicySqlxDatabase
impl PoliciesRepository for PolicySqlxDatabase
source§fn get_policy<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
resource: &'life1 Resource,
action: &'life2 Action
) -> Pin<Box<dyn Future<Output = Result<Option<Policy>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_policy<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
resource: &'life1 Resource,
action: &'life2 Action
) -> Pin<Box<dyn Future<Output = Result<Option<Policy>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Return the policy associated to a given resource and action
source§fn set_policy<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
resource: &'life1 Resource,
action: &'life2 Action,
policy: &'life3 Policy
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn set_policy<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
resource: &'life1 Resource,
action: &'life2 Action,
policy: &'life3 Policy
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Set a policy for a given resource and action
source§fn delete_policy<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
resource: &'life1 Resource,
action: &'life2 Action
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn delete_policy<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
resource: &'life1 Resource,
action: &'life2 Action
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Delete the policy associated to a given resource and action
source§fn get_policies_by_resource<'life0, 'life1, 'async_trait>(
&'life0 self,
resource: &'life1 Resource
) -> Pin<Box<dyn Future<Output = Result<Vec<(Action, Policy)>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_policies_by_resource<'life0, 'life1, 'async_trait>(
&'life0 self,
resource: &'life1 Resource
) -> Pin<Box<dyn Future<Output = Result<Vec<(Action, Policy)>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Return the list of all the policies associated to a given resource
Auto Trait Implementations§
impl !RefUnwindSafe for PolicySqlxDatabase
impl Send for PolicySqlxDatabase
impl Sync for PolicySqlxDatabase
impl Unpin for PolicySqlxDatabase
impl !UnwindSafe for PolicySqlxDatabase
Blanket Implementations§
source§impl<D> AsyncTryClone for D
impl<D> AsyncTryClone for D
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more