pub struct InboxFilter {
pub since: Option<Duration>,
pub changed: Option<Duration>,
pub min_score: Option<f64>,
pub priority: Option<PriorityCut>,
pub status: Option<String>,
}Expand description
What the inbox is cut by. Every set field must hold; unset fields pass everything.
Fields§
§since: Option<Duration>First seen no earlier than this long ago.
changed: Option<Duration>Visibly changed no earlier than this long ago.
min_score: Option<f64>Ranking field (e.g. Scoring) at least this; issues without a score fail.
priority: Option<PriorityCut>Priority, exact or “and above”.
status: Option<String>Status name, matched without regard to case.
Implementations§
Source§impl InboxFilter
impl InboxFilter
Sourcepub fn keeps(&self, item: &JiraInboxItem, now: NaiveDateTime) -> bool
pub fn keeps(&self, item: &JiraInboxItem, now: NaiveDateTime) -> bool
Whether one issue passes every set cut.
Sourcepub fn apply(
&self,
items: Vec<JiraInboxItem>,
now: NaiveDateTime,
) -> Vec<JiraInboxItem>
pub fn apply( &self, items: Vec<JiraInboxItem>, now: NaiveDateTime, ) -> Vec<JiraInboxItem>
Keeps the issues that pass, in their incoming order.
Trait Implementations§
Source§impl Clone for InboxFilter
impl Clone for InboxFilter
Source§fn clone(&self) -> InboxFilter
fn clone(&self) -> InboxFilter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InboxFilter
impl Debug for InboxFilter
Source§impl Default for InboxFilter
impl Default for InboxFilter
Source§fn default() -> InboxFilter
fn default() -> InboxFilter
Returns the “default value” for a type. Read more
Source§impl PartialEq for InboxFilter
impl PartialEq for InboxFilter
impl StructuralPartialEq for InboxFilter
Auto Trait Implementations§
impl Freeze for InboxFilter
impl RefUnwindSafe for InboxFilter
impl Send for InboxFilter
impl Sync for InboxFilter
impl Unpin for InboxFilter
impl UnsafeUnpin for InboxFilter
impl UnwindSafe for InboxFilter
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