pub struct AudienceDimensionOrMetricFilter {
pub field_name: String,
pub at_any_point_in_time: bool,
pub in_any_n_day_period: i32,
pub one_filter: Option<OneFilter>,
}
Expand description
A specific filter for a single dimension or metric.
Fields§
§field_name: String
Required. Immutable. The dimension name or metric name to filter. If the field name refers to a custom dimension or metric, a scope prefix will be added to the front of the custom dimensions or metric name. For more on scope prefixes or custom dimensions/metrics, reference the [Google Analytics Data API documentation] (https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#custom_dimensions).
at_any_point_in_time: bool
Optional. Indicates whether this filter needs dynamic evaluation or not. If set to true, users join the Audience if they ever met the condition (static evaluation). If unset or set to false, user evaluation for an Audience is dynamic; users are added to an Audience when they meet the conditions and then removed when they no longer meet them.
This can only be set when Audience scope is ACROSS_ALL_SESSIONS.
in_any_n_day_period: i32
Optional. If set, specifies the time window for which to evaluate data in number of days. If not set, then audience data is evaluated against lifetime data (For example, infinite time window).
For example, if set to 1 day, only the current day’s data is evaluated. The reference point is the current day when at_any_point_in_time is unset or false.
It can only be set when Audience scope is ACROSS_ALL_SESSIONS and cannot be greater than 60 days.
one_filter: Option<OneFilter>
One of the above filters.
Trait Implementations§
source§impl Clone for AudienceDimensionOrMetricFilter
impl Clone for AudienceDimensionOrMetricFilter
source§fn clone(&self) -> AudienceDimensionOrMetricFilter
fn clone(&self) -> AudienceDimensionOrMetricFilter
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Message for AudienceDimensionOrMetricFilter
impl Message for AudienceDimensionOrMetricFilter
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
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<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self
. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self
.source§impl PartialEq for AudienceDimensionOrMetricFilter
impl PartialEq for AudienceDimensionOrMetricFilter
source§fn eq(&self, other: &AudienceDimensionOrMetricFilter) -> bool
fn eq(&self, other: &AudienceDimensionOrMetricFilter) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AudienceDimensionOrMetricFilter
Auto Trait Implementations§
impl Freeze for AudienceDimensionOrMetricFilter
impl RefUnwindSafe for AudienceDimensionOrMetricFilter
impl Send for AudienceDimensionOrMetricFilter
impl Sync for AudienceDimensionOrMetricFilter
impl Unpin for AudienceDimensionOrMetricFilter
impl UnwindSafe for AudienceDimensionOrMetricFilter
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