pub struct TableOptions {
pub border_width: f64,
pub border_color: Color,
pub cell_padding: f64,
pub row_height: f64,
pub font: Font,
pub font_size: f64,
pub text_color: Color,
pub header_style: Option<HeaderStyle>,
pub grid_style: GridStyle,
pub cell_border_style: CellBorderStyle,
pub alternating_row_colors: Option<(Color, Color)>,
pub background_color: Option<Color>,
}Expand description
Options for table rendering
Fields§
§border_width: f64Border width in points
border_color: ColorBorder color
cell_padding: f64Cell padding in points
row_height: f64Row height in points (0 for auto)
font: FontFont for table text
font_size: f64Font size in points
text_color: ColorText color
header_style: Option<HeaderStyle>Header row styling
grid_style: GridStyleGrid layout options
cell_border_style: CellBorderStyleCell border style
alternating_row_colors: Option<(Color, Color)>Alternating row colors
background_color: Option<Color>Table background color
Trait Implementations§
Source§impl Clone for TableOptions
impl Clone for TableOptions
Source§fn clone(&self) -> TableOptions
fn clone(&self) -> TableOptions
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 TableOptions
impl Debug for TableOptions
Auto Trait Implementations§
impl Freeze for TableOptions
impl RefUnwindSafe for TableOptions
impl Send for TableOptions
impl Sync for TableOptions
impl Unpin for TableOptions
impl UnwindSafe for TableOptions
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