pub struct ColumnUsage {
pub column: String,
pub items: u32,
pub estimate: Option<u32>,
pub limit: Option<ColumnLimit>,
}Expand description
One column’s usage, and the limit it is measured against.
Fields§
§column: StringThe column’s name, as the board declares it.
items: u32How many issues the column holds.
estimate: Option<u32>The estimate total in the limit’s unit.
None when the board states no estimate ceiling for the column (there is no
unit to count in) or when at least one issue’s estimate could not be
counted — the snapshot’s diagnostics say which issue, and
ColumnUsage::state is then LimitState::Unknown.
limit: Option<ColumnLimit>The enabled limit in force for the column, if any.
Implementations§
Source§impl ColumnUsage
impl ColumnUsage
Sourcepub fn max_estimate(&self) -> Option<u32>
pub fn max_estimate(&self) -> Option<u32>
The estimate ceiling, when the column has one.
Sourcepub fn policy(&self) -> Option<LimitPolicy>
pub fn policy(&self) -> Option<LimitPolicy>
The policy the column enforces, when it enforces one.
Sourcepub fn item_state(&self) -> LimitState
pub fn item_state(&self) -> LimitState
Where the column stands on its own item ceiling.
Sourcepub fn estimate_state(&self) -> LimitState
pub fn estimate_state(&self) -> LimitState
Where the column stands on its own estimate ceiling.
Sourcepub fn state(&self) -> LimitState
pub fn state(&self) -> LimitState
Where the column stands overall: the worse of its two ceilings.
Sourcepub fn prospective(&self, add_items: u32, add_estimate: u32) -> LimitState
pub fn prospective(&self, add_items: u32, add_estimate: u32) -> LimitState
The state the column would be in after add_items more cards and
add_estimate more of its unit (T009).
This is the before/after shape a move is judged with: the caller passes what
the move would add, and reads the answer without touching a file. A move that
adds nothing reproduces state exactly.
Sourcepub fn cell(&self) -> String
pub fn cell(&self) -> String
The usage as one short cell: 4/5, or 4 when the column has no item
ceiling, with the estimate ceiling beside it in its unit (12/20d) when the
board states one. A trailing ! means something is over, or unknown.
It is deliberately the usage, not a verdict: the verdict is the policy layer’s, and a cell that said “block” would be a claim this module is not entitled to make.
Trait Implementations§
Source§impl Clone for ColumnUsage
impl Clone for ColumnUsage
Source§impl Debug for ColumnUsage
impl Debug for ColumnUsage
impl Eq for ColumnUsage
Source§impl PartialEq for ColumnUsage
impl PartialEq for ColumnUsage
impl StructuralPartialEq for ColumnUsage
Auto Trait Implementations§
impl Freeze for ColumnUsage
impl RefUnwindSafe for ColumnUsage
impl Send for ColumnUsage
impl Sync for ColumnUsage
impl Unpin for ColumnUsage
impl UnsafeUnpin for ColumnUsage
impl UnwindSafe for ColumnUsage
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
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
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> ⓘ
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> ⓘ
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