pub struct CapacityRow {
pub title: String,
pub subtitle: String,
pub warned: bool,
pub overflowing: bool,
}Expand description
One row of the Capacity tab, as display data (WP06 T030/T032).
Every figure it names is a field of the shared crate::capacity::calculate::CapacityCalculation,
already formatted by the caller: the widget composes text and computes nothing, the
same rule the page’s other tabs follow.
Fields§
§title: StringThe scope’s resolved display label — which scope the figures belong to, the
same display tix capacity list/calculate print.
subtitle: StringThe compact key: value tail: the scope kind, the state, the values and the
unit, with an absent value as - (never 0).
warned: boolWhether the calculation carried any finding (an overflow, an uncountable estimate, an unresolved reference).
overflowing: boolWhether the scope’s committed work exceeds its ceiling
(crate::capacity::calculate::CapacityCalculation::is_over_capacity).
Trait Implementations§
Source§impl Clone for CapacityRow
impl Clone for CapacityRow
Source§impl Debug for CapacityRow
impl Debug for CapacityRow
Source§impl Default for CapacityRow
impl Default for CapacityRow
impl Eq for CapacityRow
Source§impl PartialEq for CapacityRow
impl PartialEq for CapacityRow
impl StructuralPartialEq for CapacityRow
Auto Trait Implementations§
impl Freeze for CapacityRow
impl RefUnwindSafe for CapacityRow
impl Send for CapacityRow
impl Sync for CapacityRow
impl Unpin for CapacityRow
impl UnsafeUnpin for CapacityRow
impl UnwindSafe for CapacityRow
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