#[repr(i32)]
pub enum MatchStringType {
Exact,
Regex,
NotEquals,
In,
NotIn,
Range,
}
Variants§
Exact
Equivalent match
Regex
Regular match
NotEquals
Not equals match
In
Include match
NotIn
Not include match
Range
Range match
Implementations§
source§impl MatchStringType
impl MatchStringType
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 MatchStringType
impl Clone for MatchStringType
source§fn clone(&self) -> MatchStringType
fn clone(&self) -> MatchStringType
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 MatchStringType
impl Debug for MatchStringType
source§impl Default for MatchStringType
impl Default for MatchStringType
source§fn default() -> MatchStringType
fn default() -> MatchStringType
Returns the “default value” for a type. Read more
source§impl From<MatchStringType> for i32
impl From<MatchStringType> for i32
source§fn from(value: MatchStringType) -> i32
fn from(value: MatchStringType) -> i32
Converts to this type from the input type.
source§impl Hash for MatchStringType
impl Hash for MatchStringType
source§impl Ord for MatchStringType
impl Ord for MatchStringType
source§fn cmp(&self, other: &MatchStringType) -> Ordering
fn cmp(&self, other: &MatchStringType) -> 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<MatchStringType> for MatchStringType
impl PartialEq<MatchStringType> for MatchStringType
source§fn eq(&self, other: &MatchStringType) -> bool
fn eq(&self, other: &MatchStringType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<MatchStringType> for MatchStringType
impl PartialOrd<MatchStringType> for MatchStringType
source§fn partial_cmp(&self, other: &MatchStringType) -> Option<Ordering>
fn partial_cmp(&self, other: &MatchStringType) -> 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 more