Struct google_analyticsreporting4::api::Cohort [−][src]
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.
name: Option<String>A unique name for the cohort. If not defined name will be auto-generated with values cohort_[1234...].
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.
Trait Implementations
impl Clone for Cohort[src]
impl Debug for Cohort[src]
impl Default for Cohort[src]
impl<'de> Deserialize<'de> for Cohort[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl Part for Cohort[src]
impl Serialize for Cohort[src]
Auto Trait Implementations
impl RefUnwindSafe for Cohort[src]
impl Send for Cohort[src]
impl Sync for Cohort[src]
impl Unpin for Cohort[src]
impl UnwindSafe for Cohort[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,