pub enum Cell {
Text(String),
Int(i64),
Float(f64, usize),
Money {
amount: f64,
estimated: bool,
partial: bool,
},
Unsupported,
Empty,
}Expand description
One rendered value. Numeric variants align right; text aligns left.
Variants§
Text(String)
Int(i64)
A count, rendered with human suffixes (182.3k, 3.42M).
Float(f64, usize)
A ratio or rate, rendered with decimals places.
Money
A currency amount. estimated prints a ~ and adds the legend footer;
partial prints ~+ and says the figure omits unpriced spend.
Fields
Unsupported
The adapter cannot populate this KPI. Visually distinct from 0.
Empty
Genuinely nothing to show here (e.g. a spacer in a totals row).
Implementations§
Trait Implementations§
impl StructuralPartialEq for Cell
Auto Trait Implementations§
impl Freeze for Cell
impl RefUnwindSafe for Cell
impl Send for Cell
impl Sync for Cell
impl Unpin for Cell
impl UnsafeUnpin for Cell
impl UnwindSafe for Cell
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