pub enum ConditionField {
From,
To,
Cc,
Subject,
Body,
Header(String),
HasAttachment,
Envelope {
part: EnvelopePart,
address_part: AddressPart,
},
}Expand description
Message fields that conditions can target.
Variants§
From
First From address email.
To
First To address email.
Cc
Any Cc address email.
Subject
Subject header.
Body
Message body text.
Header(String)
A specific header by name.
HasAttachment
Whether the message has attachments.
Envelope
An SMTP envelope value (RFC 5228 §5.1 envelope test).
Resolved from Filterable::envelope_from /
Filterable::envelope_to; when the caller does not supply envelope
data, the test evaluates as non-matching.
Fields
§
part: EnvelopePartWhich envelope value to test.
§
address_part: AddressPartWhich portion of the address to compare.
Trait Implementations§
Source§impl Clone for ConditionField
impl Clone for ConditionField
Source§fn clone(&self) -> ConditionField
fn clone(&self) -> ConditionField
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ConditionField
impl Debug for ConditionField
Source§impl<'de> Deserialize<'de> for ConditionField
impl<'de> Deserialize<'de> for ConditionField
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
impl Eq for ConditionField
Source§impl PartialEq for ConditionField
impl PartialEq for ConditionField
Source§impl Serialize for ConditionField
impl Serialize for ConditionField
impl StructuralPartialEq for ConditionField
Auto Trait Implementations§
impl Freeze for ConditionField
impl RefUnwindSafe for ConditionField
impl Send for ConditionField
impl Sync for ConditionField
impl Unpin for ConditionField
impl UnsafeUnpin for ConditionField
impl UnwindSafe for ConditionField
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