Struct google_api_proto::google::monitoring::v3::uptime_check_config::ContentMatcher
source · pub struct ContentMatcher {
pub content: String,
pub matcher: i32,
pub additional_matcher_info: Option<AdditionalMatcherInfo>,
}
Expand description
Optional. Used to perform content matching. This allows matching based on substrings and regular expressions, together with their negations. Only the first 4 MB of an HTTP or HTTPS check’s response (and the first 1 MB of a TCP check’s response) are examined for purposes of content matching.
Fields§
§content: String
String, regex or JSON content to match. Maximum 1024 bytes. An empty
content
string indicates no content matching is to be performed.
matcher: i32
The type of content matcher that will be applied to the server output,
compared to the content
string when the check is run.
additional_matcher_info: Option<AdditionalMatcherInfo>
Certain ContentMatcherOption
types require additional information.
MATCHES_JSON_PATH
or NOT_MATCHES_JSON_PATH
require a
JsonPathMatcher
; not used for other options.
Implementations§
source§impl ContentMatcher
impl ContentMatcher
sourcepub fn matcher(&self) -> ContentMatcherOption
pub fn matcher(&self) -> ContentMatcherOption
Returns the enum value of matcher
, or the default if the field is set to an invalid enum value.
sourcepub fn set_matcher(&mut self, value: ContentMatcherOption)
pub fn set_matcher(&mut self, value: ContentMatcherOption)
Sets matcher
to the provided enum value.
Trait Implementations§
source§impl Clone for ContentMatcher
impl Clone for ContentMatcher
source§fn clone(&self) -> ContentMatcher
fn clone(&self) -> ContentMatcher
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ContentMatcher
impl Debug for ContentMatcher
source§impl Default for ContentMatcher
impl Default for ContentMatcher
source§impl Message for ContentMatcher
impl Message for ContentMatcher
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 ContentMatcher
impl PartialEq for ContentMatcher
source§fn eq(&self, other: &ContentMatcher) -> bool
fn eq(&self, other: &ContentMatcher) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ContentMatcher
Auto Trait Implementations§
impl Freeze for ContentMatcher
impl RefUnwindSafe for ContentMatcher
impl Send for ContentMatcher
impl Sync for ContentMatcher
impl Unpin for ContentMatcher
impl UnwindSafe for ContentMatcher
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