pub struct QueueRow {
pub issue: Issue,
pub age_days: Option<i64>,
pub last_decision: LastDecision,
}Expand description
One row of the inbox: the issue, how long it has waited, and the last decision recorded on it.
Owned rather than borrowed because inbox::QueueMetrics borrows the
snapshot it was collected from, and the inbox outlives the query that
filled it.
Fields§
§issue: IssueThe issue as the snapshot read it.
age_days: Option<i64>Days since the entry stamp; None when nothing recorded one. Never
0 for “unknown” — that is inbox’s rule and it is copied, not
re-derived.
last_decision: LastDecisionThe last triage decision, told apart from none and from a line that no
longer parses (tix #1494). A reader that shows the queue wants all three
states; None used to mean both “undecided” and “unreadable”.
Trait Implementations§
impl Eq for QueueRow
impl StructuralPartialEq for QueueRow
Auto Trait Implementations§
impl Freeze for QueueRow
impl RefUnwindSafe for QueueRow
impl Send for QueueRow
impl Sync for QueueRow
impl Unpin for QueueRow
impl UnsafeUnpin for QueueRow
impl UnwindSafe for QueueRow
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more