pub struct PivotGroup {
pub source_column_offset: i64,
pub show_totals: bool,
pub sort_order: Option<String>,
}Expand description
One row or column grouping of a PivotTable — PivotGroup.
Fields§
§source_column_offset: i64Which source column this groups by, 0-based and relative to
PivotTable::source’s first column — not an absolute sheet
column index. Proto3 omits this on the wire when it’s 0
(grouping by the source’s first column) — see the module doc.
show_totals: boolWhether to show a totals row/column for this grouping. Always sent
explicitly (never omitted) since the API’s own default (true)
would otherwise silently differ from a caller’s expectation.
#[serde(default)] only affects deserialisation: it’s needed
because proto3 omits false on the wire (--no-totals), and
doesn’t change what this crate sends.
sort_order: Option<String>"ASCENDING" or "DESCENDING". Optional only so a read-back of
an existing pivot table tolerates its absence: the API rejects a
write without it (No sort order specified., #1930), so
add-pivot-table always sends one, defaulting a bare COLUMN to
"ASCENDING".
Trait Implementations§
Source§impl Clone for PivotGroup
impl Clone for PivotGroup
Source§impl Debug for PivotGroup
impl Debug for PivotGroup
Source§impl Default for PivotGroup
impl Default for PivotGroup
Source§impl<'de> Deserialize<'de> for PivotGroup
impl<'de> Deserialize<'de> for PivotGroup
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 PivotGroup
Source§impl PartialEq for PivotGroup
impl PartialEq for PivotGroup
Source§impl Serialize for PivotGroup
impl Serialize for PivotGroup
impl StructuralPartialEq for PivotGroup
Auto Trait Implementations§
impl Freeze for PivotGroup
impl RefUnwindSafe for PivotGroup
impl Send for PivotGroup
impl Sync for PivotGroup
impl Unpin for PivotGroup
impl UnsafeUnpin for PivotGroup
impl UnwindSafe for PivotGroup
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