Struct google_api_proto::google::analytics::admin::v1alpha::MatchingCondition
source · pub struct MatchingCondition {
pub field: String,
pub comparison_type: i32,
pub value: String,
pub negated: bool,
}
Expand description
Defines a condition for when an Event Edit or Event Creation rule applies to an event.
Fields§
§field: String
Required. The name of the field that is compared against for the condition. If ‘event_name’ is specified this condition will apply to the name of the event. Otherwise the condition will apply to a parameter with the specified name.
This value cannot contain spaces.
comparison_type: i32
Required. The type of comparison to be applied to the value.
value: String
Required. The value being compared against for this condition. The runtime implementation may perform type coercion of this value to evaluate this condition based on the type of the parameter value.
negated: bool
Whether or not the result of the comparison should be negated. For example,
if negated
is true, then ‘equals’ comparisons would function as ‘not
equals’.
Implementations§
source§impl MatchingCondition
impl MatchingCondition
sourcepub fn comparison_type(&self) -> ComparisonType
pub fn comparison_type(&self) -> ComparisonType
Returns the enum value of comparison_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_comparison_type(&mut self, value: ComparisonType)
pub fn set_comparison_type(&mut self, value: ComparisonType)
Sets comparison_type
to the provided enum value.
Trait Implementations§
source§impl Clone for MatchingCondition
impl Clone for MatchingCondition
source§fn clone(&self) -> MatchingCondition
fn clone(&self) -> MatchingCondition
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MatchingCondition
impl Debug for MatchingCondition
source§impl Default for MatchingCondition
impl Default for MatchingCondition
source§impl Message for MatchingCondition
impl Message for MatchingCondition
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 MatchingCondition
impl PartialEq for MatchingCondition
source§fn eq(&self, other: &MatchingCondition) -> bool
fn eq(&self, other: &MatchingCondition) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for MatchingCondition
Auto Trait Implementations§
impl Freeze for MatchingCondition
impl RefUnwindSafe for MatchingCondition
impl Send for MatchingCondition
impl Sync for MatchingCondition
impl Unpin for MatchingCondition
impl UnwindSafe for MatchingCondition
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