pub struct Rule<'a> {
pub kind: RuleKind,
pub pattern: &'a str,
}Expand description
A single Allow or Disallow rule.
Fields§
§kind: RuleKindWhether this rule allows or disallows matching paths.
pattern: &'a strPath pattern borrowed from the directive value.
Patterns may contain * wildcards and a trailing $ end anchor.
Trait Implementations§
impl<'a> Copy for Rule<'a>
impl<'a> Eq for Rule<'a>
impl<'a> StructuralPartialEq for Rule<'a>
Auto Trait Implementations§
impl<'a> Freeze for Rule<'a>
impl<'a> RefUnwindSafe for Rule<'a>
impl<'a> Send for Rule<'a>
impl<'a> Sync for Rule<'a>
impl<'a> Unpin for Rule<'a>
impl<'a> UnsafeUnpin for Rule<'a>
impl<'a> UnwindSafe for Rule<'a>
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