pub struct DateRange {
pub end_date: Option<String>,
pub name: Option<String>,
pub start_date: Option<String>,
}
Expand description
A contiguous set of days: startDate
, startDate + 1
, …, endDate
. Requests are allowed up to 4 date ranges.
This type is not used in any activity, and only used as part of another schema.
Fields§
§end_date: Option<String>
The inclusive end date for the query in the format YYYY-MM-DD
. Cannot be before start_date
. The format NdaysAgo
, yesterday
, or today
is also accepted, and in that case, the date is inferred based on the property’s reporting time zone.
name: Option<String>
Assigns a name to this date range. The dimension dateRange
is valued to this name in a report response. If set, cannot begin with date_range_
or RESERVED_
. If not set, date ranges are named by their zero based index in the request: date_range_0
, date_range_1
, etc.
start_date: Option<String>
The inclusive start date for the query in the format YYYY-MM-DD
. Cannot be after end_date
. The format NdaysAgo
, yesterday
, or today
is also accepted, and in that case, the date is inferred based on the property’s reporting time zone.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DateRange
impl<'de> Deserialize<'de> for DateRange
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>,
impl Part for DateRange
Auto Trait Implementations§
impl Freeze for DateRange
impl RefUnwindSafe for DateRange
impl Send for DateRange
impl Sync for DateRange
impl Unpin for DateRange
impl UnwindSafe for DateRange
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more