pub struct PivotTable {Show 20 fields
pub id: u32,
pub name: String,
pub source: String,
pub anchor: CellRef,
pub rows: Vec<PivotField>,
pub columns: Vec<PivotField>,
pub values: Vec<PivotValue>,
pub filters: Vec<PivotFilter>,
pub layout: PivotLayout,
pub enable_show_details: bool,
pub grand_totals_rows: bool,
pub grand_totals_cols: bool,
pub subtotals: bool,
pub subtotals_top: bool,
pub style: String,
pub show_headers: bool,
pub last_range: Option<RangeRef>,
pub calculated_fields: Vec<PivotCalcField>,
pub values_on_rows: bool,
pub values_position: Option<usize>,
}Expand description
A PivotTable: its definition plus where its output was last written. The output itself is static cell values and styles on the sheet, rewritten on every refresh.
Fields§
§id: u32§name: String§source: StringSource: range formula text (Sheet1!$A$1:$E$200), a table name or a defined name.
anchor: CellRefTop-left of the output body on the pivot’s sheet.
rows: Vec<PivotField>§columns: Vec<PivotField>§values: Vec<PivotValue>§filters: Vec<PivotFilter>§layout: PivotLayout§enable_show_details: boolPivotTable Options › Data › Enable show details: Show Details lists a value cell’s source records only while this is on.
grand_totals_rows: boolGrand total for each row (the “Grand Total” column), like Excel’s “On for Rows”.
grand_totals_cols: boolGrand total for each column (the “Grand Total” row), like Excel’s “On for Columns”.
subtotals: bool§subtotals_top: boolSubtotals at the top of each group (Compact/Outline); otherwise below it.
style: String§show_headers: bool§last_range: Option<RangeRef>Area written by the last refresh.
calculated_fields: Vec<PivotCalcField>Calculated fields, usable in the Values area by name.
values_on_rows: boolThe Σ Values pseudo-field (it exists with two or more value fields) sits in Rows rather than Columns (Excel’s “values on rows”).
values_position: Option<usize>Position of Σ Values among the row fields (None = after the last). Only used with
values_on_rows: in Columns Σ Values always comes after the last column field.
Trait Implementations§
Source§impl Clone for PivotTable
impl Clone for PivotTable
Source§fn clone(&self) -> PivotTable
fn clone(&self) -> PivotTable
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more