Struct google_api_proto::google::analytics::data::v1beta::CohortsRange
source · pub struct CohortsRange {
pub granularity: i32,
pub start_offset: i32,
pub end_offset: i32,
}
Expand description
Configures the extended reporting date range for a cohort report. Specifies an offset duration to follow the cohorts over.
Fields§
§granularity: i32
Required. The granularity used to interpret the startOffset
and
endOffset
for the extended reporting date range for a cohort report.
start_offset: i32
startOffset
specifies the start date of the extended reporting date range
for a cohort report. startOffset
is commonly set to 0 so that reports
contain data from the acquisition of the cohort forward.
If granularity
is DAILY
, the startDate
of the extended reporting date
range is startDate
of the cohort plus startOffset
days.
If granularity
is WEEKLY
, the startDate
of the extended reporting
date range is startDate
of the cohort plus startOffset * 7
days.
If granularity
is MONTHLY
, the startDate
of the extended reporting
date range is startDate
of the cohort plus startOffset * 30
days.
end_offset: i32
Required. endOffset
specifies the end date of the extended reporting date
range for a cohort report. endOffset
can be any positive integer but is
commonly set to 5 to 10 so that reports contain data on the cohort for the
next several granularity time periods.
If granularity
is DAILY
, the endDate
of the extended reporting date
range is endDate
of the cohort plus endOffset
days.
If granularity
is WEEKLY
, the endDate
of the extended reporting date
range is endDate
of the cohort plus endOffset * 7
days.
If granularity
is MONTHLY
, the endDate
of the extended reporting date
range is endDate
of the cohort plus endOffset * 30
days.
Implementations§
source§impl CohortsRange
impl CohortsRange
sourcepub fn granularity(&self) -> Granularity
pub fn granularity(&self) -> Granularity
Returns the enum value of granularity
, or the default if the field is set to an invalid enum value.
sourcepub fn set_granularity(&mut self, value: Granularity)
pub fn set_granularity(&mut self, value: Granularity)
Sets granularity
to the provided enum value.
Trait Implementations§
source§impl Clone for CohortsRange
impl Clone for CohortsRange
source§fn clone(&self) -> CohortsRange
fn clone(&self) -> CohortsRange
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CohortsRange
impl Debug for CohortsRange
source§impl Default for CohortsRange
impl Default for CohortsRange
source§impl Message for CohortsRange
impl Message for CohortsRange
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 CohortsRange
impl PartialEq for CohortsRange
source§fn eq(&self, other: &CohortsRange) -> bool
fn eq(&self, other: &CohortsRange) -> bool
self
and other
values to be equal, and is used
by ==
.impl Copy for CohortsRange
impl StructuralPartialEq for CohortsRange
Auto Trait Implementations§
impl Freeze for CohortsRange
impl RefUnwindSafe for CohortsRange
impl Send for CohortsRange
impl Sync for CohortsRange
impl Unpin for CohortsRange
impl UnwindSafe for CohortsRange
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