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