Enum google_api_proto::google::cloud::compute::v1::metadata_filter::FilterMatchCriteria
source · #[repr(i32)]pub enum FilterMatchCriteria {
UndefinedFilterMatchCriteria = 0,
MatchAll = 180_663_271,
MatchAny = 180_663_346,
NotSet = 163_646_646,
}
Expand description
Specifies how individual filter label matches within the list of filterLabels and contributes toward the overall metadataFilter match. Supported values are: - MATCH_ANY: at least one of the filterLabels must have a matching label in the provided metadata. - MATCH_ALL: all filterLabels must have matching labels in the provided metadata.
Variants§
UndefinedFilterMatchCriteria = 0
A value indicating that the enum field is not set.
MatchAll = 180_663_271
Specifies that all filterLabels must match for the metadataFilter to be considered a match.
MatchAny = 180_663_346
Specifies that any filterLabel must match for the metadataFilter to be considered a match.
NotSet = 163_646_646
Indicates that the match criteria was not set. A metadataFilter must never be created with this value.
Implementations§
source§impl FilterMatchCriteria
impl FilterMatchCriteria
sourcepub fn from_i32(value: i32) -> Option<FilterMatchCriteria>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<FilterMatchCriteria>
Converts an i32
to a FilterMatchCriteria
, or None
if value
is not a valid variant.
source§impl FilterMatchCriteria
impl FilterMatchCriteria
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 FilterMatchCriteria
impl Clone for FilterMatchCriteria
source§fn clone(&self) -> FilterMatchCriteria
fn clone(&self) -> FilterMatchCriteria
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FilterMatchCriteria
impl Debug for FilterMatchCriteria
source§impl Default for FilterMatchCriteria
impl Default for FilterMatchCriteria
source§fn default() -> FilterMatchCriteria
fn default() -> FilterMatchCriteria
source§impl From<FilterMatchCriteria> for i32
impl From<FilterMatchCriteria> for i32
source§fn from(value: FilterMatchCriteria) -> i32
fn from(value: FilterMatchCriteria) -> i32
source§impl Hash for FilterMatchCriteria
impl Hash for FilterMatchCriteria
source§impl Ord for FilterMatchCriteria
impl Ord for FilterMatchCriteria
source§fn cmp(&self, other: &FilterMatchCriteria) -> Ordering
fn cmp(&self, other: &FilterMatchCriteria) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for FilterMatchCriteria
impl PartialEq for FilterMatchCriteria
source§fn eq(&self, other: &FilterMatchCriteria) -> bool
fn eq(&self, other: &FilterMatchCriteria) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for FilterMatchCriteria
impl PartialOrd for FilterMatchCriteria
source§fn partial_cmp(&self, other: &FilterMatchCriteria) -> Option<Ordering>
fn partial_cmp(&self, other: &FilterMatchCriteria) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for FilterMatchCriteria
impl TryFrom<i32> for FilterMatchCriteria
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<FilterMatchCriteria, DecodeError>
fn try_from(value: i32) -> Result<FilterMatchCriteria, DecodeError>
impl Copy for FilterMatchCriteria
impl Eq for FilterMatchCriteria
impl StructuralPartialEq for FilterMatchCriteria
Auto Trait Implementations§
impl Freeze for FilterMatchCriteria
impl RefUnwindSafe for FilterMatchCriteria
impl Send for FilterMatchCriteria
impl Sync for FilterMatchCriteria
impl Unpin for FilterMatchCriteria
impl UnwindSafe for FilterMatchCriteria
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<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
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
§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
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>
T
in a tonic::Request