pub struct AdvancedTableBuilder { /* private fields */ }Expand description
Builder for creating advanced tables with fluent API
Implementations§
Source§impl AdvancedTableBuilder
impl AdvancedTableBuilder
Sourcepub fn add_column<S: Into<String>>(self, header: S, width: f64) -> Self
pub fn add_column<S: Into<String>>(self, header: S, width: f64) -> Self
Add a column to the table
Sourcepub fn add_styled_column<S: Into<String>>(
self,
header: S,
width: f64,
style: CellStyle,
) -> Self
pub fn add_styled_column<S: Into<String>>( self, header: S, width: f64, style: CellStyle, ) -> Self
Add a column with custom styling
Sourcepub fn columns_equal_width(self, headers: Vec<&str>, total_width: f64) -> Self
pub fn columns_equal_width(self, headers: Vec<&str>, total_width: f64) -> Self
Set columns from a list of headers with equal widths
pub fn add_row_with_min_height( self, content: Vec<&str>, min_height: f64, ) -> Self
Sourcepub fn add_row_cells(self, cells: Vec<CellData>) -> Self
pub fn add_row_cells(self, cells: Vec<CellData>) -> Self
Add a row with cell data
Sourcepub fn add_styled_row(self, content: Vec<&str>, style: CellStyle) -> Self
pub fn add_styled_row(self, content: Vec<&str>, style: CellStyle) -> Self
Add a styled row
Sourcepub fn default_style(self, style: CellStyle) -> Self
pub fn default_style(self, style: CellStyle) -> Self
Set default cell style
Sourcepub fn data_style(self, style: CellStyle) -> Self
pub fn data_style(self, style: CellStyle) -> Self
Set data cell style (alias for default_style)
Sourcepub fn header_style(self, style: CellStyle) -> Self
pub fn header_style(self, style: CellStyle) -> Self
Set header style
Sourcepub fn show_header(self, show: bool) -> Self
pub fn show_header(self, show: bool) -> Self
Control header visibility
Sourcepub fn columns(self, column_specs: Vec<(&str, f64)>) -> Self
pub fn columns(self, column_specs: Vec<(&str, f64)>) -> Self
Set table columns from (header, width) tuples
Sourcepub fn complex_header(self, header: HeaderBuilder) -> Self
pub fn complex_header(self, header: HeaderBuilder) -> Self
Add a complex header using HeaderBuilder
Sourcepub fn zebra_stripes(self, enabled: bool, color: Color) -> Self
pub fn zebra_stripes(self, enabled: bool, color: Color) -> Self
Enable zebra stripes
Sourcepub fn add_row_with_style(self, content: Vec<&str>, style: CellStyle) -> Self
pub fn add_row_with_style(self, content: Vec<&str>, style: CellStyle) -> Self
Add row with custom style
Sourcepub fn add_row_with_mixed_styles(self, cells: Vec<(CellStyle, &str)>) -> Self
pub fn add_row_with_mixed_styles(self, cells: Vec<(CellStyle, &str)>) -> Self
Add row with mixed cell styles
Sourcepub fn build(self) -> Result<AdvancedTable, TableError>
pub fn build(self) -> Result<AdvancedTable, TableError>
Build with error handling (for compatibility with tests)
Sourcepub fn zebra_striping(self, color: Color) -> Self
pub fn zebra_striping(self, color: Color) -> Self
Enable zebra striping
Sourcepub fn zebra_striping_custom(self, config: ZebraConfig) -> Self
pub fn zebra_striping_custom(self, config: ZebraConfig) -> Self
Enable custom zebra striping
Sourcepub fn table_border(self, enabled: bool) -> Self
pub fn table_border(self, enabled: bool) -> Self
Enable or disable table border
Sourcepub fn cell_spacing(self, spacing: f64) -> Self
pub fn cell_spacing(self, spacing: f64) -> Self
Set cell spacing
Sourcepub fn total_width(self, width: f64) -> Self
pub fn total_width(self, width: f64) -> Self
Set total table width
Sourcepub fn repeat_headers(self, repeat: bool) -> Self
pub fn repeat_headers(self, repeat: bool) -> Self
Enable header repetition on page breaks
Sourcepub fn set_cell_style(self, row: usize, col: usize, style: CellStyle) -> Self
pub fn set_cell_style(self, row: usize, col: usize, style: CellStyle) -> Self
Set style for a specific cell
Sourcepub fn financial_table(self) -> Self
pub fn financial_table(self) -> Self
Create a financial table with common styling
Sourcepub fn minimal_table(self) -> Self
pub fn minimal_table(self) -> Self
Create a data table with minimal styling
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AdvancedTableBuilder
impl RefUnwindSafe for AdvancedTableBuilder
impl Send for AdvancedTableBuilder
impl Sync for AdvancedTableBuilder
impl Unpin for AdvancedTableBuilder
impl UnwindSafe for AdvancedTableBuilder
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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>
ReadEndian::read_from_little_endian().