pub struct AbacAdapter {
pub rules: Vec<AbacRule>,
}Available on crate feature
enterprise only.Expand description
Fields§
§rules: Vec<AbacRule>Ordered rules evaluated with first-match semantics.
Implementations§
Trait Implementations§
Source§impl AuthorizationEngine for AbacAdapter
impl AuthorizationEngine for AbacAdapter
Source§fn evaluate(&self, context: &AuthorizationContext) -> AuthorizationDecision
fn evaluate(&self, context: &AuthorizationContext) -> AuthorizationDecision
Evaluates access for a given request context.
Source§impl Clone for AbacAdapter
impl Clone for AbacAdapter
Source§fn clone(&self) -> AbacAdapter
fn clone(&self) -> AbacAdapter
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 AbacAdapter
impl Debug for AbacAdapter
Source§impl Default for AbacAdapter
impl Default for AbacAdapter
Source§fn default() -> AbacAdapter
fn default() -> AbacAdapter
Returns the “default value” for a type. Read more
Source§impl PartialEq for AbacAdapter
impl PartialEq for AbacAdapter
impl Eq for AbacAdapter
impl StructuralPartialEq for AbacAdapter
Auto Trait Implementations§
impl Freeze for AbacAdapter
impl RefUnwindSafe for AbacAdapter
impl Send for AbacAdapter
impl Sync for AbacAdapter
impl Unpin for AbacAdapter
impl UnsafeUnpin for AbacAdapter
impl UnwindSafe for AbacAdapter
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.