pub struct PivotValue {
pub calculated_display_type: Option<String>,
pub data_source_column_reference: Option<DataSourceColumnReference>,
pub formula: Option<String>,
pub name: Option<String>,
pub source_column_offset: Option<i32>,
pub summarize_function: Option<String>,
}
Expand description
The definition of how a value in a pivot table should be calculated.
This type is not used in any activity, and only used as part of another schema.
Fields§
§calculated_display_type: Option<String>
If specified, indicates that pivot values should be displayed as the result of a calculation with another pivot value. For example, if calculated_display_type is specified as PERCENT_OF_GRAND_TOTAL, all the pivot values are displayed as the percentage of the grand total. In the Sheets editor, this is referred to as “Show As” in the value section of a pivot table.
data_source_column_reference: Option<DataSourceColumnReference>
The reference to the data source column that this value reads from.
formula: Option<String>
A custom formula to calculate the value. The formula must start with an =
character.
name: Option<String>
A name to use for the value.
source_column_offset: Option<i32>
The column offset of the source range that this value reads from. For example, if the source was C10:E15
, a sourceColumnOffset
of 0
means this value refers to column C
, whereas the offset 1
would refer to column D
.
summarize_function: Option<String>
A function to summarize the value. If formula is set, the only supported values are SUM and CUSTOM. If sourceColumnOffset is set, then CUSTOM
is not supported.
Trait Implementations§
Source§impl Clone for PivotValue
impl Clone for PivotValue
Source§fn clone(&self) -> PivotValue
fn clone(&self) -> PivotValue
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for PivotValue
impl Debug for PivotValue
Source§impl Default for PivotValue
impl Default for PivotValue
Source§fn default() -> PivotValue
fn default() -> PivotValue
Source§impl<'de> Deserialize<'de> for PivotValue
impl<'de> Deserialize<'de> for PivotValue
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>,
Source§impl Serialize for PivotValue
impl Serialize for PivotValue
impl Part for PivotValue
Auto Trait Implementations§
impl Freeze for PivotValue
impl RefUnwindSafe for PivotValue
impl Send for PivotValue
impl Sync for PivotValue
impl Unpin for PivotValue
impl UnwindSafe for PivotValue
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,
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