Struct mailslurp::models::match_options::MatchOptions [−][src]
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]
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 Clone for MatchOptions
[src]fn clone(&self) -> MatchOptions
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'de> Deserialize<'de> for MatchOptions
[src]
impl<'de> Deserialize<'de> for MatchOptions
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<MatchOptions> for MatchOptions
[src]
impl PartialEq<MatchOptions> for MatchOptions
[src]fn eq(&self, other: &MatchOptions) -> bool
[src]
fn ne(&self, other: &MatchOptions) -> bool
[src]
impl Serialize for MatchOptions
[src]
impl Serialize for MatchOptions
[src]impl StructuralPartialEq for MatchOptions
[src]
impl StructuralPartialEq for MatchOptions
[src]Auto Trait Implementations
impl RefUnwindSafe for MatchOptions
impl RefUnwindSafe for MatchOptions
impl Send for MatchOptions
impl Send for MatchOptions
impl Sync for MatchOptions
impl Sync for MatchOptions
impl Unpin for MatchOptions
impl Unpin for MatchOptions
impl UnwindSafe for MatchOptions
impl UnwindSafe for MatchOptions
Blanket Implementations
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]