Struct google_api_proto::google::analytics::data::v1alpha::UserSegmentConditionGroup
source · pub struct UserSegmentConditionGroup {
pub condition_scoping: i32,
pub segment_filter_expression: Option<SegmentFilterExpression>,
}
Expand description
Conditions tell Analytics what data to include in or exclude from the segment.
Fields§
§condition_scoping: i32
Data is included or excluded from the segment based on if it matches
the condition group. This scoping defines how many events the
segmentFilterExpression
is evaluated on before the condition group
is determined to be matched or not. For example if conditionScoping = USER_CRITERIA_WITHIN_SAME_SESSION
, the expression is evaluated on all
events in a session, and then, the condition group is determined to be
matched or not for this user. For example if conditionScoping = USER_CRITERIA_WITHIN_SAME_EVENT
, the expression is evaluated on a single
event, and then, the condition group is determined to be matched or not for
this user.
Optional. If unspecified, conditionScoping = ACROSS_ALL_SESSIONS
is
used.
segment_filter_expression: Option<SegmentFilterExpression>
Data is included or excluded from the segment based on if it matches this expression. Expressions express criteria on dimension, metrics, and/or parameters.
Implementations§
source§impl UserSegmentConditionGroup
impl UserSegmentConditionGroup
sourcepub fn condition_scoping(&self) -> UserCriteriaScoping
pub fn condition_scoping(&self) -> UserCriteriaScoping
Returns the enum value of condition_scoping
, or the default if the field is set to an invalid enum value.
sourcepub fn set_condition_scoping(&mut self, value: UserCriteriaScoping)
pub fn set_condition_scoping(&mut self, value: UserCriteriaScoping)
Sets condition_scoping
to the provided enum value.
Trait Implementations§
source§impl Clone for UserSegmentConditionGroup
impl Clone for UserSegmentConditionGroup
source§fn clone(&self) -> UserSegmentConditionGroup
fn clone(&self) -> UserSegmentConditionGroup
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UserSegmentConditionGroup
impl Debug for UserSegmentConditionGroup
source§impl Default for UserSegmentConditionGroup
impl Default for UserSegmentConditionGroup
source§impl Message for UserSegmentConditionGroup
impl Message for UserSegmentConditionGroup
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 UserSegmentConditionGroup
impl PartialEq for UserSegmentConditionGroup
source§fn eq(&self, other: &UserSegmentConditionGroup) -> bool
fn eq(&self, other: &UserSegmentConditionGroup) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UserSegmentConditionGroup
Auto Trait Implementations§
impl Freeze for UserSegmentConditionGroup
impl RefUnwindSafe for UserSegmentConditionGroup
impl Send for UserSegmentConditionGroup
impl Sync for UserSegmentConditionGroup
impl Unpin for UserSegmentConditionGroup
impl UnwindSafe for UserSegmentConditionGroup
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