Struct google_api_proto::google::analytics::data::v1beta::MinuteRange
source · pub struct MinuteRange {
pub start_minutes_ago: Option<i32>,
pub end_minutes_ago: Option<i32>,
pub name: String,
}
Expand description
A contiguous set of minutes: startMinutesAgo
, startMinutesAgo + 1
, …,
endMinutesAgo
. Requests are allowed up to 2 minute ranges.
Fields§
§start_minutes_ago: Option<i32>
The inclusive start minute for the query as a number of minutes before now.
For example, "startMinutesAgo": 29
specifies the report should include
event data from 29 minutes ago and after. Cannot be after endMinutesAgo
.
If unspecified, startMinutesAgo
is defaulted to 29. Standard Analytics
properties can request up to the last 30 minutes of event data
(startMinutesAgo <= 29
), and 360 Analytics properties can request up to
the last 60 minutes of event data (startMinutesAgo <= 59
).
end_minutes_ago: Option<i32>
The inclusive end minute for the query as a number of minutes before now.
Cannot be before startMinutesAgo
. For example, "endMinutesAgo": 15
specifies the report should include event data from prior to 15 minutes
ago.
If unspecified, endMinutesAgo
is defaulted to 0. Standard Analytics
properties can request any minute in the last 30 minutes of event data
(endMinutesAgo <= 29
), and 360 Analytics properties can request any
minute in the last 60 minutes of event data (endMinutesAgo <= 59
).
name: String
Assigns a name to this minute 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, minute ranges are named by their zero based index
in the request: date_range_0
, date_range_1
, etc.
Implementations§
source§impl MinuteRange
impl MinuteRange
sourcepub fn start_minutes_ago(&self) -> i32
pub fn start_minutes_ago(&self) -> i32
Returns the value of start_minutes_ago
, or the default value if start_minutes_ago
is unset.
sourcepub fn end_minutes_ago(&self) -> i32
pub fn end_minutes_ago(&self) -> i32
Returns the value of end_minutes_ago
, or the default value if end_minutes_ago
is unset.
Trait Implementations§
source§impl Clone for MinuteRange
impl Clone for MinuteRange
source§fn clone(&self) -> MinuteRange
fn clone(&self) -> MinuteRange
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MinuteRange
impl Debug for MinuteRange
source§impl Default for MinuteRange
impl Default for MinuteRange
source§impl Message for MinuteRange
impl Message for MinuteRange
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 MinuteRange
impl PartialEq for MinuteRange
source§fn eq(&self, other: &MinuteRange) -> bool
fn eq(&self, other: &MinuteRange) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for MinuteRange
Auto Trait Implementations§
impl Freeze for MinuteRange
impl RefUnwindSafe for MinuteRange
impl Send for MinuteRange
impl Sync for MinuteRange
impl Unpin for MinuteRange
impl UnwindSafe for MinuteRange
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