Enum google_api_proto::google::monitoring::v3::uptime_check_config::content_matcher::ContentMatcherOption
source · #[repr(i32)]pub enum ContentMatcherOption {
Unspecified = 0,
ContainsString = 1,
NotContainsString = 2,
MatchesRegex = 3,
NotMatchesRegex = 4,
MatchesJsonPath = 5,
NotMatchesJsonPath = 6,
}
Expand description
Options to perform content matching.
Variants§
Unspecified = 0
No content matcher type specified (maintained for backward
compatibility, but deprecated for future use).
Treated as CONTAINS_STRING
.
ContainsString = 1
Selects substring matching. The match succeeds if the output contains
the content
string. This is the default value for checks without
a matcher
option, or where the value of matcher
is
CONTENT_MATCHER_OPTION_UNSPECIFIED
.
NotContainsString = 2
Selects negation of substring matching. The match succeeds if the
output does NOT contain the content
string.
MatchesRegex = 3
Selects regular-expression matching. The match succeeds if the output
matches the regular expression specified in the content
string.
Regex matching is only supported for HTTP/HTTPS checks.
NotMatchesRegex = 4
Selects negation of regular-expression matching. The match succeeds if
the output does NOT match the regular expression specified in the
content
string. Regex matching is only supported for HTTP/HTTPS
checks.
MatchesJsonPath = 5
Selects JSONPath matching. See JsonPathMatcher
for details on when
the match succeeds. JSONPath matching is only supported for HTTP/HTTPS
checks.
NotMatchesJsonPath = 6
Selects JSONPath matching. See JsonPathMatcher
for details on when
the match succeeds. Succeeds when output does NOT match as specified.
JSONPath is only supported for HTTP/HTTPS checks.
Implementations§
source§impl ContentMatcherOption
impl ContentMatcherOption
sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true
if value
is a variant of ContentMatcherOption
.
sourcepub fn from_i32(value: i32) -> Option<ContentMatcherOption>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<ContentMatcherOption>
Converts an i32
to a ContentMatcherOption
, or None
if value
is not a valid variant.
source§impl ContentMatcherOption
impl ContentMatcherOption
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 ContentMatcherOption
impl Clone for ContentMatcherOption
source§fn clone(&self) -> ContentMatcherOption
fn clone(&self) -> ContentMatcherOption
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ContentMatcherOption
impl Debug for ContentMatcherOption
source§impl Default for ContentMatcherOption
impl Default for ContentMatcherOption
source§fn default() -> ContentMatcherOption
fn default() -> ContentMatcherOption
source§impl From<ContentMatcherOption> for i32
impl From<ContentMatcherOption> for i32
source§fn from(value: ContentMatcherOption) -> i32
fn from(value: ContentMatcherOption) -> i32
source§impl Hash for ContentMatcherOption
impl Hash for ContentMatcherOption
source§impl Ord for ContentMatcherOption
impl Ord for ContentMatcherOption
source§fn cmp(&self, other: &ContentMatcherOption) -> Ordering
fn cmp(&self, other: &ContentMatcherOption) -> 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 ContentMatcherOption
impl PartialEq for ContentMatcherOption
source§fn eq(&self, other: &ContentMatcherOption) -> bool
fn eq(&self, other: &ContentMatcherOption) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ContentMatcherOption
impl PartialOrd for ContentMatcherOption
source§fn partial_cmp(&self, other: &ContentMatcherOption) -> Option<Ordering>
fn partial_cmp(&self, other: &ContentMatcherOption) -> 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 ContentMatcherOption
impl TryFrom<i32> for ContentMatcherOption
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<ContentMatcherOption, UnknownEnumValue>
fn try_from(value: i32) -> Result<ContentMatcherOption, UnknownEnumValue>
impl Copy for ContentMatcherOption
impl Eq for ContentMatcherOption
impl StructuralPartialEq for ContentMatcherOption
Auto Trait Implementations§
impl Freeze for ContentMatcherOption
impl RefUnwindSafe for ContentMatcherOption
impl Send for ContentMatcherOption
impl Sync for ContentMatcherOption
impl Unpin for ContentMatcherOption
impl UnwindSafe for ContentMatcherOption
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