Enum google_api_proto::google::analytics::admin::v1alpha::matching_condition::ComparisonType
source · #[repr(i32)]pub enum ComparisonType {
Show 15 variants
Unspecified = 0,
Equals = 1,
EqualsCaseInsensitive = 2,
Contains = 3,
ContainsCaseInsensitive = 4,
StartsWith = 5,
StartsWithCaseInsensitive = 6,
EndsWith = 7,
EndsWithCaseInsensitive = 8,
GreaterThan = 9,
GreaterThanOrEqual = 10,
LessThan = 11,
LessThanOrEqual = 12,
RegularExpression = 13,
RegularExpressionCaseInsensitive = 14,
}
Expand description
Comparison type for matching condition
Variants§
Unspecified = 0
Unknown
Equals = 1
Equals, case sensitive
EqualsCaseInsensitive = 2
Equals, case insensitive
Contains = 3
Contains, case sensitive
ContainsCaseInsensitive = 4
Contains, case insensitive
StartsWith = 5
Starts with, case sensitive
StartsWithCaseInsensitive = 6
Starts with, case insensitive
EndsWith = 7
Ends with, case sensitive
EndsWithCaseInsensitive = 8
Ends with, case insensitive
GreaterThan = 9
Greater than
GreaterThanOrEqual = 10
Greater than or equal
LessThan = 11
Less than
LessThanOrEqual = 12
Less than or equal
RegularExpression = 13
regular expression. Only supported for web streams.
RegularExpressionCaseInsensitive = 14
regular expression, case insensitive. Only supported for web streams.
Implementations§
source§impl ComparisonType
impl ComparisonType
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for ComparisonType
impl Clone for ComparisonType
source§fn clone(&self) -> ComparisonType
fn clone(&self) -> ComparisonType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ComparisonType
impl Debug for ComparisonType
source§impl Default for ComparisonType
impl Default for ComparisonType
source§fn default() -> ComparisonType
fn default() -> ComparisonType
Returns the “default value” for a type. Read more
source§impl From<ComparisonType> for i32
impl From<ComparisonType> for i32
source§fn from(value: ComparisonType) -> i32
fn from(value: ComparisonType) -> i32
Converts to this type from the input type.
source§impl Hash for ComparisonType
impl Hash for ComparisonType
source§impl Ord for ComparisonType
impl Ord for ComparisonType
source§fn cmp(&self, other: &ComparisonType) -> Ordering
fn cmp(&self, other: &ComparisonType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ComparisonType
impl PartialEq for ComparisonType
source§fn eq(&self, other: &ComparisonType) -> bool
fn eq(&self, other: &ComparisonType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ComparisonType
impl PartialOrd for ComparisonType
source§fn partial_cmp(&self, other: &ComparisonType) -> Option<Ordering>
fn partial_cmp(&self, other: &ComparisonType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for ComparisonType
impl TryFrom<i32> for ComparisonType
§type Error = DecodeError
type Error = DecodeError
The type returned in the event of a conversion error.
source§fn try_from(value: i32) -> Result<ComparisonType, DecodeError>
fn try_from(value: i32) -> Result<ComparisonType, DecodeError>
Performs the conversion.
impl Copy for ComparisonType
impl Eq for ComparisonType
impl StructuralPartialEq for ComparisonType
Auto Trait Implementations§
impl Freeze for ComparisonType
impl RefUnwindSafe for ComparisonType
impl Send for ComparisonType
impl Sync for ComparisonType
impl Unpin for ComparisonType
impl UnwindSafe for ComparisonType
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
Mutably borrows from an owned value. Read more
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§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>
Wrap the input message
T
in a tonic::Request