Struct mailslurp::models::match_options::MatchOptions [−][src]
pub struct MatchOptions { pub conditions: Option<Vec<ConditionOption>>, pub matches: Option<Vec<MatchOption>>, }
Expand description
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' }] }
. You can also pass conditions such as HAS_ATTACHMENT
. If you wish to extract regex matches inside the email content see the getEmailContentMatch
method in the EmailController.
Fields
conditions: Option<Vec<ConditionOption>>
Zero or more conditions such as { condition: 'HAS_ATTACHMENTS', value: 'TRUE' }
. Note the values are the strings TRUE|FALSE
not booleans.
matches: Option<Vec<MatchOption>>
Zero or more match options such as { field: 'SUBJECT', should: 'CONTAIN', value: 'Welcome' }
. Options are additive so if one does not match the email is excluded from results
Implementations
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' }] }
. You can also pass conditions such as HAS_ATTACHMENT
. If you wish to extract regex matches inside the email content see the getEmailContentMatch
method in the EmailController.
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 MatchOptions
impl Send for MatchOptions
impl Sync for MatchOptions
impl Unpin for MatchOptions
impl UnwindSafe for MatchOptions
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more