pub struct ContentMatcher {
pub content: Option<String>,
pub json_path_matcher: Option<JsonPathMatcher>,
pub matcher: Option<String>,
}
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.
This type is not used in any activity, and only used as part of another schema.
Fields§
§content: Option<String>
String, regex or JSON content to match. Maximum 1024 bytes. An empty content string indicates no content matching is to be performed.
json_path_matcher: Option<JsonPathMatcher>
Matcher information for MATCHES_JSON_PATH and NOT_MATCHES_JSON_PATH
matcher: Option<String>
The type of content matcher that will be applied to the server output, compared to the content string when the check is run.
Trait Implementations§
Source§impl Clone for ContentMatcher
impl Clone for ContentMatcher
Source§fn clone(&self) -> ContentMatcher
fn clone(&self) -> ContentMatcher
Returns a duplicate 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 ContentMatcher
impl Debug for ContentMatcher
Source§impl Default for ContentMatcher
impl Default for ContentMatcher
Source§fn default() -> ContentMatcher
fn default() -> ContentMatcher
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ContentMatcher
impl<'de> Deserialize<'de> for ContentMatcher
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ContentMatcher
impl Serialize for ContentMatcher
impl Part 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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more