Struct google_analyticsdata1_beta::api::PivotSelection
source · pub struct PivotSelection {
pub dimension_name: Option<String>,
pub dimension_value: Option<String>,
}Expand description
A pair of dimension names and values. Rows with this dimension pivot pair are ordered by the metric’s value. For example if pivots = {{“browser”, “Chrome”}} and metric_name = “Sessions”, then the rows will be sorted based on Sessions in Chrome. ———|–––––|––––––––|–––––|–––––––– | Chrome | Chrome | Safari | Safari ———|–––––|––––––––|–––––|–––––––– Country | Sessions | Pages/Sessions | Sessions | Pages/Sessions ———|–––––|––––––––|–––––|–––––––– US | 2 | 2 | 3 | 1 ———|–––––|––––––––|–––––|–––––––– Canada | 3 | 1 | 4 | 1 ———|–––––|––––––––|–––––|––––––––
This type is not used in any activity, and only used as part of another schema.
Fields§
§dimension_name: Option<String>Must be a dimension name from the request.
dimension_value: Option<String>Order by only when the named dimension is this value.
Trait Implementations§
source§impl Clone for PivotSelection
impl Clone for PivotSelection
source§fn clone(&self) -> PivotSelection
fn clone(&self) -> PivotSelection
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for PivotSelection
impl Debug for PivotSelection
source§impl Default for PivotSelection
impl Default for PivotSelection
source§fn default() -> PivotSelection
fn default() -> PivotSelection
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for PivotSelection
impl<'de> Deserialize<'de> for PivotSelection
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>,
Deserialize this value from the given Serde deserializer. Read more