pub struct PolicyGuard;Expand description
Default policy guard implementing scope- and visibility-based access control.
Trait Implementations§
Source§impl Authorizer for PolicyGuard
impl Authorizer for PolicyGuard
Source§fn can_get(&self, principal: &Principal, secret: &SecretMeta) -> bool
fn can_get(&self, principal: &Principal, secret: &SecretMeta) -> bool
Determine whether a secret can be retrieved.
Source§fn can_put(&self, principal: &Principal, secret: &SecretMeta) -> bool
fn can_put(&self, principal: &Principal, secret: &SecretMeta) -> bool
Determine whether a secret can be created or updated.
Source§fn can_delete(&self, principal: &Principal, secret: &SecretMeta) -> bool
fn can_delete(&self, principal: &Principal, secret: &SecretMeta) -> bool
Determine whether a secret may be deleted.
Source§fn can_rotate(&self, principal: &Principal, secret: &SecretMeta) -> bool
fn can_rotate(&self, principal: &Principal, secret: &SecretMeta) -> bool
Determine whether a secret may be rotated.
Source§impl Clone for PolicyGuard
impl Clone for PolicyGuard
Source§fn clone(&self) -> PolicyGuard
fn clone(&self) -> PolicyGuard
Returns a duplicate 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 Debug for PolicyGuard
impl Debug for PolicyGuard
Source§impl Default for PolicyGuard
impl Default for PolicyGuard
Source§fn default() -> PolicyGuard
fn default() -> PolicyGuard
Returns the “default value” for a type. Read more
impl Copy for PolicyGuard
Auto Trait Implementations§
impl Freeze for PolicyGuard
impl RefUnwindSafe for PolicyGuard
impl Send for PolicyGuard
impl Sync for PolicyGuard
impl Unpin for PolicyGuard
impl UnwindSafe for PolicyGuard
Blanket Implementations§
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