pub struct PivotTable {
pub source: GridRange,
pub rows: Vec<PivotGroup>,
pub columns: Vec<PivotGroup>,
pub values: Vec<PivotValue>,
pub filter_specs: Vec<PivotFilterSpec>,
pub value_layout: Option<String>,
}Expand description
A pivot table definition — PivotTable.
Also Deserialize: unlike most other request-only pieces in this
file, a pivot table is read back too, via
CellSnapshot::pivot_table, so list-pivot-tables and
delete-pivot-table’s “currently:” preview can round-trip one.
A curated surface, not full API coverage — mirroring
conditional_format.rs’s own stance. Not modelled: the deprecated
criteria field (filterSpecs replaces it), PivotGroup.groupRule
(date/number bucketing), PivotGroup.valueBucket/valueMetadata
(sort-by-value-column and collapsed-group state), data-source pivots
(dataSourceId/dataExecutionStatus), and
PivotValue.calculatedDisplayType. docs/drive.md names each gap.
Fields§
§source: GridRangeThe range this pivot table is built from.
rows: Vec<PivotGroup>Row grouping(s), outermost first.
columns: Vec<PivotGroup>Column grouping(s), outermost first.
values: Vec<PivotValue>Aggregated value column(s).
filter_specs: Vec<PivotFilterSpec>Source-row filters, by column offset.
value_layout: Option<String>"HORIZONTAL" (values as columns, the API default) or
"VERTICAL" (values as rows). Absent means the API default.
Trait Implementations§
Source§impl Clone for PivotTable
impl Clone for PivotTable
Source§impl Debug for PivotTable
impl Debug for PivotTable
Source§impl Default for PivotTable
impl Default for PivotTable
Source§impl<'de> Deserialize<'de> for PivotTable
impl<'de> Deserialize<'de> for PivotTable
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for PivotTable
Source§impl PartialEq for PivotTable
impl PartialEq for PivotTable
Source§impl Serialize for PivotTable
impl Serialize for PivotTable
impl StructuralPartialEq for PivotTable
Auto Trait Implementations§
impl Freeze for PivotTable
impl RefUnwindSafe for PivotTable
impl Send for PivotTable
impl Sync for PivotTable
impl Unpin for PivotTable
impl UnsafeUnpin for PivotTable
impl UnwindSafe for PivotTable
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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 more