[][src]Struct mailslurp::models::match_options::MatchOptions

pub struct MatchOptions {
    pub matches: Option<Vec<MatchOption>>,
}

MatchOptions : Optional filter for matching emails based on fields. For instance filter results to only include emails whose SUBJECT value does CONTAIN given match value. An example payload would be { matches: [{ field: 'SUBJECT', should: 'CONTAIN', value: 'Welcome' }] }. If you wish to extract regex matches inside the email content see the getEmailContentMatch method in the EmailController.

Fields

matches: Option<Vec<MatchOption>>

1 or more match options. Options are additive so if one does not match the email is excluded from results

Implementations

impl MatchOptions[src]

pub fn new() -> MatchOptions[src]

Optional filter for matching emails based on fields. For instance filter results to only include emails whose SUBJECT value does CONTAIN given match value. An example payload would be { matches: [{ field: 'SUBJECT', should: 'CONTAIN', value: 'Welcome' }] }. If you wish to extract regex matches inside the email content see the getEmailContentMatch method in the EmailController.

Trait Implementations

impl Clone for MatchOptions[src]

impl Debug for MatchOptions[src]

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

impl PartialEq<MatchOptions> for MatchOptions[src]

impl Serialize for MatchOptions[src]

impl StructuralPartialEq for MatchOptions[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.