pub struct Theme {Show 14 fields
pub char_bar_filled: char,
pub char_bar_empty: char,
pub char_bar_open: String,
pub char_bar_close: String,
pub threshold_usage_medium: f32,
pub threshold_usage_high: f32,
pub color_heading: Option<Color>,
pub color_usage_low: Option<Color>,
pub color_usage_medium: Option<Color>,
pub color_usage_high: Option<Color>,
pub color_usage_void: Option<Color>,
pub color_bar_empty: Option<Color>,
pub bar_width: usize,
pub columns: Vec<ColumnType>,
}Expand description
Visual policy used by the table renderer.
Fields§
§char_bar_filled: charGlyph used for filled bar cells.
char_bar_empty: charGlyph used for empty bar cells.
char_bar_open: StringOptional opening decoration for the bar.
char_bar_close: StringOptional closing decoration for the bar.
threshold_usage_medium: f32Percentage at which usage becomes medium severity.
threshold_usage_high: f32Percentage at which usage becomes high severity.
color_heading: Option<Color>Heading color, if color output is enabled.
color_usage_low: Option<Color>Low-usage color.
color_usage_medium: Option<Color>Medium-usage color.
color_usage_high: Option<Color>High-usage color.
color_usage_void: Option<Color>Color for records without a usable percentage.
color_bar_empty: Option<Color>Color for unfilled usage-bar cells.
bar_width: usizeNumber of cells in a usage bar.
columns: Vec<ColumnType>Columns rendered from left to right.
Implementations§
Auto Trait Implementations§
impl Freeze for Theme
impl RefUnwindSafe for Theme
impl Send for Theme
impl Sync for Theme
impl Unpin for Theme
impl UnsafeUnpin for Theme
impl UnwindSafe for Theme
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