#[non_exhaustive]pub enum CombineOp {
And,
Or,
Not,
Delegate,
DenyOverrides,
}Expand description
The type of boolean combining operation a policy might represent.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
And
All inner policies must grant access.
Or
At least one inner policy must grant access.
Not
The inner policy’s decision is inverted.
Delegate
A parent policy delegated the decision to another checker.
DenyOverrides
Any forbidding policy denies; otherwise at least one policy must
grant. The root operation of crate::PermissionChecker.
Trait Implementations§
impl Copy for CombineOp
impl Eq for CombineOp
impl StructuralPartialEq for CombineOp
Auto Trait Implementations§
impl Freeze for CombineOp
impl RefUnwindSafe for CombineOp
impl Send for CombineOp
impl Sync for CombineOp
impl Unpin for CombineOp
impl UnsafeUnpin for CombineOp
impl UnwindSafe for CombineOp
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