pub struct TableStyle {
pub cell_padding: CellPadding,
pub cell_borders: Borders,
pub outer_border: Option<TableBorderStyle>,
pub font_name: String,
pub font_size: f32,
pub header_background: Option<(f32, f32, f32)>,
pub stripe_color: Option<(f32, f32, f32)>,
pub row_spacing: f32,
}Expand description
Table style configuration.
Fields§
§cell_padding: CellPaddingDefault cell padding
cell_borders: BordersDefault cell borders
outer_border: Option<TableBorderStyle>Table outer border
font_name: StringDefault font name
font_size: f32Default font size
header_background: Option<(f32, f32, f32)>Header row background color
stripe_color: Option<(f32, f32, f32)>Alternating row colors (even rows)
row_spacing: f32Space between rows
Implementations§
Source§impl TableStyle
impl TableStyle
Sourcepub fn cell_padding(self, padding: CellPadding) -> Self
pub fn cell_padding(self, padding: CellPadding) -> Self
Set cell padding.
Sourcepub fn cell_borders(self, borders: Borders) -> Self
pub fn cell_borders(self, borders: Borders) -> Self
Set cell borders.
Sourcepub fn outer_border(self, border: TableBorderStyle) -> Self
pub fn outer_border(self, border: TableBorderStyle) -> Self
Set outer border.
Sourcepub fn header_background(self, r: f32, g: f32, b: f32) -> Self
pub fn header_background(self, r: f32, g: f32, b: f32) -> Self
Set header background color.
Trait Implementations§
Source§impl Clone for TableStyle
impl Clone for TableStyle
Source§fn clone(&self) -> TableStyle
fn clone(&self) -> TableStyle
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 TableStyle
impl Debug for TableStyle
Auto Trait Implementations§
impl Freeze for TableStyle
impl RefUnwindSafe for TableStyle
impl Send for TableStyle
impl Sync for TableStyle
impl Unpin for TableStyle
impl UnsafeUnpin for TableStyle
impl UnwindSafe for TableStyle
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().