Struct google_analyticsreporting4::Cohort [−][src]
pub struct Cohort { pub date_range: Option<DateRange>, pub type_: Option<String>, pub name: Option<String>, }
Defines a cohort. A cohort is a group of users who share a common characteristic. For example, all users with the same acquisition date belong to the same cohort.
This type is not used in any activity, and only used as part of another schema.
Fields
date_range: Option<DateRange>
This is used for FIRST_VISIT_DATE
cohort, the cohort selects users
whose first visit date is between start date and end date defined in the
DateRange. The date ranges should be aligned for cohort requests. If the
request contains ga:cohortNthDay
it should be exactly one day long,
if ga:cohortNthWeek
it should be aligned to the week boundary (starting
at Sunday and ending Saturday), and for ga:cohortNthMonth
the date range
should be aligned to the month (starting at the first and ending on the
last day of the month).
For LTV requests there are no such restrictions.
You do not need to supply a date range for the
reportsRequest.dateRanges
field.
type_: Option<String>
Type of the cohort. The only supported type as of now is
FIRST_VISIT_DATE
. If this field is unspecified the cohort is treated
as FIRST_VISIT_DATE
type cohort.
name: Option<String>
A unique name for the cohort. If not defined name will be auto-generated with values cohort_[1234...].
Trait Implementations
impl Default for Cohort
[src]
impl Default for Cohort
impl Clone for Cohort
[src]
impl Clone for Cohort
fn clone(&self) -> Cohort
[src]
fn clone(&self) -> Cohort
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for Cohort
[src]
impl Debug for Cohort
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Part for Cohort
[src]
impl Part for Cohort