pub enum PathRule {
Prefix(String),
Regex(Regex),
Equals(String),
}
Variants§
Implementations§
Source§impl PathRule
impl PathRule
pub fn matches(&self, path: &[u8]) -> PathRuleResult
pub fn from_config(rule: CommandPathRule) -> Option<Self>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PathRule
impl RefUnwindSafe for PathRule
impl Send for PathRule
impl Sync for PathRule
impl Unpin for PathRule
impl UnwindSafe for PathRule
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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