Struct gapi_grpc::google::monitoring::v3::uptime_check_config::ContentMatcher[][src]

pub struct ContentMatcher {
    pub content: String,
    pub matcher: i32,
}

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 or regex 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.

Implementations

impl ContentMatcher[src]

pub fn matcher(&self) -> ContentMatcherOption[src]

Returns the enum value of matcher, or the default if the field is set to an invalid enum value.

pub fn set_matcher(&mut self, value: ContentMatcherOption)[src]

Sets matcher to the provided enum value.

Trait Implementations

impl Clone for ContentMatcher[src]

impl Debug for ContentMatcher[src]

impl Default for ContentMatcher[src]

impl Message for ContentMatcher[src]

impl PartialEq<ContentMatcher> for ContentMatcher[src]

impl StructuralPartialEq for ContentMatcher[src]

Auto Trait Implementations

impl RefUnwindSafe for ContentMatcher

impl Send for ContentMatcher

impl Sync for ContentMatcher

impl Unpin for ContentMatcher

impl UnwindSafe for ContentMatcher

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]