pub struct Pivot {
pub field_names: Vec<String>,
pub order_bys: Vec<OrderBy>,
pub offset: i64,
pub limit: i64,
pub metric_aggregations: Vec<i32>,
}
Expand description
Describes the visible dimension columns and rows in the report response.
Fields§
§field_names: Vec<String>
Dimension names for visible columns in the report response. Including “dateRange” produces a date range column; for each row in the response, dimension values in the date range column will indicate the corresponding date range from the request.
order_bys: Vec<OrderBy>
Specifies how dimensions are ordered in the pivot. In the first Pivot, the OrderBys determine Row and PivotDimensionHeader ordering; in subsequent Pivots, the OrderBys determine only PivotDimensionHeader ordering. Dimensions specified in these OrderBys must be a subset of Pivot.field_names.
offset: i64
The row count of the start row. The first row is counted as row 0.
limit: i64
The number of unique combinations of dimension values to return in this
pivot. The limit
parameter is required. A limit
of 10,000 is common for
single pivot requests.
The product of the limit
for each pivot
in a RunPivotReportRequest
must not exceed 250,000. For example, a two pivot request with limit: 1000
in each pivot will fail because the product is 1,000,000
.
metric_aggregations: Vec<i32>
Aggregate the metrics by dimensions in this pivot using the specified metric_aggregations.
Implementations§
source§impl Pivot
impl Pivot
sourcepub fn metric_aggregations(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<MetricAggregation>>
pub fn metric_aggregations( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<MetricAggregation>>
Returns an iterator which yields the valid enum values contained in metric_aggregations
.
sourcepub fn push_metric_aggregations(&mut self, value: MetricAggregation)
pub fn push_metric_aggregations(&mut self, value: MetricAggregation)
Appends the provided enum value to metric_aggregations
.
Trait Implementations§
source§impl Message for Pivot
impl Message for Pivot
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for Pivot
impl PartialEq for Pivot
impl StructuralPartialEq for Pivot
Auto Trait Implementations§
impl Freeze for Pivot
impl RefUnwindSafe for Pivot
impl Send for Pivot
impl Sync for Pivot
impl Unpin for Pivot
impl UnwindSafe for Pivot
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request