pub struct ContentFormatSpec {Show 13 fields
pub fg: Option<ColorSpec>,
pub bg: Option<ColorSpec>,
pub bold: bool,
pub italic: bool,
pub underline: bool,
pub dim: bool,
pub fixed_precision: Option<u8>,
pub border: Option<BorderStyleSpec>,
pub max_rows: Option<usize>,
pub align: Option<AlignSpec>,
pub chart_type: Option<ChartTypeSpec>,
pub x_column: Option<String>,
pub y_columns: Vec<String>,
}Expand description
Content-string format specification for rich terminal/HTML output.
Fields§
§fg: Option<ColorSpec>§bg: Option<ColorSpec>§bold: bool§italic: bool§underline: bool§dim: bool§fixed_precision: Option<u8>§border: Option<BorderStyleSpec>§max_rows: Option<usize>§align: Option<AlignSpec>§chart_type: Option<ChartTypeSpec>Chart type hint: render the value as a chart instead of text.
x_column: Option<String>Column name to use as x-axis data.
y_columns: Vec<String>Column names to use as y-axis series.
Trait Implementations§
Source§impl Clone for ContentFormatSpec
impl Clone for ContentFormatSpec
Source§fn clone(&self) -> ContentFormatSpec
fn clone(&self) -> ContentFormatSpec
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ContentFormatSpec
impl Debug for ContentFormatSpec
Source§impl Default for ContentFormatSpec
impl Default for ContentFormatSpec
Source§impl PartialEq for ContentFormatSpec
impl PartialEq for ContentFormatSpec
impl Eq for ContentFormatSpec
impl StructuralPartialEq for ContentFormatSpec
Auto Trait Implementations§
impl Freeze for ContentFormatSpec
impl RefUnwindSafe for ContentFormatSpec
impl Send for ContentFormatSpec
impl Sync for ContentFormatSpec
impl Unpin for ContentFormatSpec
impl UnsafeUnpin for ContentFormatSpec
impl UnwindSafe for ContentFormatSpec
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