pub enum Section {
Title {
left: String,
right: Option<String>,
},
Metric {
label: String,
pct: u16,
severity: PaceSeverity,
value_label: String,
footnote: String,
},
Text {
label: String,
value: String,
},
Block {
label: String,
body: Vec<String>,
},
Spacer,
}Expand description
One row of the panel body. Vendors emit a Vec<Section>; the renderer
turns them into ratatui widgets.
Variants§
Title
Title row at the top. left is the plan/vendor label (accent-colored,
bold); right is an optional right-aligned annotation, used for the
“Updated HH:MM:SS” timestamp so it shares the title row instead of
taking a separate body row + duplicating the global footer’s clock.
Metric
A metric: label + gauge + value annotation + dim footnote.
Text
Free-form key/value text line.
Block
A label followed by a multi-line dim block (no gauge).
Spacer
Visual spacer (one blank row).
Auto Trait Implementations§
impl Freeze for Section
impl RefUnwindSafe for Section
impl Send for Section
impl Sync for Section
impl Unpin for Section
impl UnsafeUnpin for Section
impl UnwindSafe for Section
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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