pub struct CapacityView {
pub rows: Vec<CapacityRow>,
pub details: Vec<CapacityDetail>,
pub summaries: BTreeMap<String, String>,
}Expand description
The capacity read the page renders (WP06): the configured scopes’ rows and their details, plus the compact per-cycle cells the board’s cycle group headers show.
Built once per refresh by crate::app::App from the shared DTOs — the same
one-pass pair and the same for_scope the CLI’s tix capacity calculate calls — so
no value here is a TUI-only number (C-007/NFR-003).
Fields§
§rows: Vec<CapacityRow>One row per configured scope, in declaration order.
details: Vec<CapacityDetail>The selected row’s detail, by the same index as Self::rows.
summaries: BTreeMap<String, String>A compact cell per cycle scope, keyed by the reference a card names and by the scope’s resolved display label, for the board’s grouped-by-cycle headers.
Trait Implementations§
Source§impl Clone for CapacityView
impl Clone for CapacityView
Source§impl Debug for CapacityView
impl Debug for CapacityView
Source§impl Default for CapacityView
impl Default for CapacityView
impl Eq for CapacityView
Source§impl PartialEq for CapacityView
impl PartialEq for CapacityView
impl StructuralPartialEq for CapacityView
Auto Trait Implementations§
impl Freeze for CapacityView
impl RefUnwindSafe for CapacityView
impl Send for CapacityView
impl Sync for CapacityView
impl Unpin for CapacityView
impl UnsafeUnpin for CapacityView
impl UnwindSafe for CapacityView
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