pub struct MatchCriteria {
pub recipient_pattern: Option<String>,
pub sender_pattern: Option<String>,
pub subject_pattern: Option<String>,
pub match_all: bool,
}Expand description
Criteria for matching incoming emails
Fields§
§recipient_pattern: Option<String>Match by recipient pattern (regex)
sender_pattern: Option<String>Match by sender pattern (regex)
subject_pattern: Option<String>Match by subject pattern (regex)
match_all: boolMatch all (default fixture)
Trait Implementations§
Source§impl Clone for MatchCriteria
impl Clone for MatchCriteria
Source§fn clone(&self) -> MatchCriteria
fn clone(&self) -> MatchCriteria
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MatchCriteria
impl Debug for MatchCriteria
Source§impl Default for MatchCriteria
impl Default for MatchCriteria
Source§fn default() -> MatchCriteria
fn default() -> MatchCriteria
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MatchCriteria
impl<'de> Deserialize<'de> for MatchCriteria
Source§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
Auto Trait Implementations§
impl Freeze for MatchCriteria
impl RefUnwindSafe for MatchCriteria
impl Send for MatchCriteria
impl Sync for MatchCriteria
impl Unpin for MatchCriteria
impl UnwindSafe for MatchCriteria
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more