pub enum LayerRequirement {
Required,
Optional,
}Expand description
Whether a detailed authorization decision is required for a request path.
Variants§
Required
A detailed decision must be present; Abstain is a denial.
Optional
An explicitly optional detailed layer permits Abstain.
This variant is only for a deliberately disabled optional layer. It must not convert an unavailable layer or any other failure into an allow.
Trait Implementations§
Source§impl Clone for LayerRequirement
impl Clone for LayerRequirement
impl Copy for LayerRequirement
Source§impl Debug for LayerRequirement
impl Debug for LayerRequirement
impl Eq for LayerRequirement
Source§impl PartialEq for LayerRequirement
impl PartialEq for LayerRequirement
impl StructuralPartialEq for LayerRequirement
Auto Trait Implementations§
impl Freeze for LayerRequirement
impl RefUnwindSafe for LayerRequirement
impl Send for LayerRequirement
impl Sync for LayerRequirement
impl Unpin for LayerRequirement
impl UnsafeUnpin for LayerRequirement
impl UnwindSafe for LayerRequirement
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