pub struct CompiledRule {
pub number: usize,
pub rule: InboxRule,
pub label: String,
pub dormant: Option<String>,
/* private fields */
}Expand description
A rule ready to match, with where it sits in the config.
Fields§
§number: usizePosition in jira_inbox.rules, counting from 1.
rule: InboxRule§label: String§dormant: Option<String>Why the rule can match nothing yet: a priority the inbox has never seen.
Implementations§
Source§impl CompiledRule
impl CompiledRule
Sourcepub fn matches(&self, item: &JiraInboxItem) -> bool
pub fn matches(&self, item: &JiraInboxItem) -> bool
Whether the issue meets every condition.
Trait Implementations§
Source§impl Clone for CompiledRule
impl Clone for CompiledRule
Auto Trait Implementations§
impl Freeze for CompiledRule
impl RefUnwindSafe for CompiledRule
impl Send for CompiledRule
impl Sync for CompiledRule
impl Unpin for CompiledRule
impl UnsafeUnpin for CompiledRule
impl UnwindSafe for CompiledRule
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