pub struct FieldValues<'a> {
pub from: &'a str,
pub to: &'a str,
pub cc: &'a str,
pub subject: &'a str,
pub body: &'a str,
pub has_attachment: bool,
pub headers: Vec<(&'a str, &'a str)>,
}Expand description
Extracted field values from a message for condition evaluation.
A concrete Filterable: build one from your message, or evaluate
directly against your own Filterable implementation.
Fields§
§from: &'a strFrom address email (first).
to: &'a strTo address email (first).
cc: &'a strCc address email (first, if any).
subject: &'a strSubject.
body: &'a strBody text.
has_attachment: boolWhether the message has attachments.
headers: Vec<(&'a str, &'a str)>Raw headers (name -> value) for Header conditions.
Trait Implementations§
Source§impl<'a> Clone for FieldValues<'a>
impl<'a> Clone for FieldValues<'a>
Source§fn clone(&self) -> FieldValues<'a>
fn clone(&self) -> FieldValues<'a>
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<'a> Debug for FieldValues<'a>
impl<'a> Debug for FieldValues<'a>
Source§impl<'a> Default for FieldValues<'a>
impl<'a> Default for FieldValues<'a>
Source§fn default() -> FieldValues<'a>
fn default() -> FieldValues<'a>
Returns the “default value” for a type. Read more
Source§impl Filterable for FieldValues<'_>
impl Filterable for FieldValues<'_>
Source§fn has_attachment(&self) -> bool
fn has_attachment(&self) -> bool
Whether the message has attachments.
Auto Trait Implementations§
impl<'a> Freeze for FieldValues<'a>
impl<'a> RefUnwindSafe for FieldValues<'a>
impl<'a> Send for FieldValues<'a>
impl<'a> Sync for FieldValues<'a>
impl<'a> Unpin for FieldValues<'a>
impl<'a> UnsafeUnpin for FieldValues<'a>
impl<'a> UnwindSafe for FieldValues<'a>
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