[][src]Struct mailslurp::models::content_match_options::ContentMatchOptions

pub struct ContentMatchOptions {
    pub pattern: Option<String>,
}

ContentMatchOptions : Options for matching content using regex patterns based on Java Pattern syntax

Fields

pattern: Option<String>

Java style regex pattern. Do not include the typical / at start or end of regex in some languages. Given an example your code is: 12345 the pattern to extract match looks like code is: (\\d{6}). This will return an array of matches with the first matching the entire pattern and the subsequent matching the groups: ['code is: 123456', '123456'] See https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html for more information of available patterns.

Implementations

impl ContentMatchOptions[src]

pub fn new() -> ContentMatchOptions[src]

Options for matching content using regex patterns based on Java Pattern syntax

Trait Implementations

impl Clone for ContentMatchOptions[src]

impl Debug for ContentMatchOptions[src]

impl<'de> Deserialize<'de> for ContentMatchOptions[src]

impl PartialEq<ContentMatchOptions> for ContentMatchOptions[src]

impl Serialize for ContentMatchOptions[src]

impl StructuralPartialEq for ContentMatchOptions[src]

Auto Trait Implementations

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

impl<T, U> Into<U> for T where
    U: From<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.