Struct mailslurp::models::match_option::MatchOption [−][src]
pub struct MatchOption { pub field: Option<Field>, pub should: Option<Should>, pub value: Option<String>, }
Expand description
MatchOption : Options for matching emails in an inbox. Each match option object contains a field
, should
and value
property. Together they form logical conditions such as SUBJECT
should CONTAIN
value.
Fields
field: Option<Field>
The email property to match on. One of SUBJECT, TO, BCC, CC or FROM
should: Option<Should>
What criteria to apply. CONTAIN or EQUAL. Note CONTAIN is recommended due to some SMTP servers adding new lines to fields and body content.
value: Option<String>
The value you wish to compare with the value of the field specified using the should
value passed. For example BODY
should CONTAIN
a value passed.
Implementations
Options for matching emails in an inbox. Each match option object contains a field
, should
and value
property. Together they form logical conditions such as SUBJECT
should CONTAIN
value.
Trait Implementations
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for MatchOption
impl Send for MatchOption
impl Sync for MatchOption
impl Unpin for MatchOption
impl UnwindSafe for MatchOption
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more