pub struct CategoryRule {
pub name: String,
pub matcher: CategoryMatcher,
pub category: StringCategory,
pub priority: i32,
}Expand description
Rule for categorizing strings.
Fields§
§name: StringUnique rule name.
matcher: CategoryMatcherPredicate that determines whether a string matches.
category: StringCategoryCategory assigned on a match.
priority: i32Priority; larger values are evaluated first.
Auto Trait Implementations§
impl !RefUnwindSafe for CategoryRule
impl !UnwindSafe for CategoryRule
impl Freeze for CategoryRule
impl Send for CategoryRule
impl Sync for CategoryRule
impl Unpin for CategoryRule
impl UnsafeUnpin for CategoryRule
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