#[non_exhaustive]pub enum Permit {
Unrestricted,
Rule(String),
Refused(String),
}Expand description
What a secret’s allow rules say about one request.
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.
Unrestricted
The secret has no rules: every request to its host gets it.
Rule(String)
The request matches this rule.
Refused(String)
The request matches no rule, or cannot be matched; why, without the path.
Trait Implementations§
impl Eq for Permit
impl StructuralPartialEq for Permit
Auto Trait Implementations§
impl Freeze for Permit
impl RefUnwindSafe for Permit
impl Send for Permit
impl Sync for Permit
impl Unpin for Permit
impl UnsafeUnpin for Permit
impl UnwindSafe for Permit
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