pub struct Rule {
pub name: Option<String>,
pub pattern: RulePattern,
pub account: String,
pub priority: i32,
}Expand description
A categorization rule.
Fields§
§name: Option<String>Optional name for this rule (for debugging/display).
pattern: RulePatternThe pattern to match against payee/narration.
account: StringThe account to assign when this rule matches.
priority: i32Priority for ordering (higher = checked first). Default: 0. User rules should use positive priorities, merchant dict uses -1000.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Rule
impl RefUnwindSafe for Rule
impl Send for Rule
impl Sync for Rule
impl Unpin for Rule
impl UnsafeUnpin for Rule
impl UnwindSafe for Rule
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