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 RefUnwindSafe for PathRule
impl Send for PathRule
impl Sync for PathRule
impl Unpin for PathRule
impl UnwindSafe for PathRule
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§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