pub enum SearchEmailsFilterQuery {
And(Box<SearchEmailsFilterQuery>, Box<SearchEmailsFilterQuery>),
Or(Box<SearchEmailsFilterQuery>, Box<SearchEmailsFilterQuery>),
Not(Box<SearchEmailsFilterQuery>),
Date(NaiveDate),
AfterDate(NaiveDate),
From(String),
To(String),
Subject(String),
Body(String),
Flag(Flag),
}search only.Expand description
The search emails filter query.
Composed of 3 operators (and, or, not) and 7 conditions (date,
after date, from, to, subject, body, flag). All date-related
conditions are anchored to the Date: header (sent-at), never to
the server-side received-at timestamp.
Variants§
And(Box<SearchEmailsFilterQuery>, Box<SearchEmailsFilterQuery>)
Filter emails that match both given conditions.
Or(Box<SearchEmailsFilterQuery>, Box<SearchEmailsFilterQuery>)
Filter emails that match one of the two given conditions.
Not(Box<SearchEmailsFilterQuery>)
Filter emails that do not match the given condition.
Date(NaiveDate)
Filter emails where the Date: header of the message matches
the given date.
Only the year, the month and the day are taken into consideration.
AfterDate(NaiveDate)
Filter emails where the Date: header of the message is
strictly greater than the given date.
For example, for 2024-01-01 it matches messages with a date
starting from 2024-01-02 and above. Only the year, the month
and the day are taken into consideration.
From(String)
Filter emails where the From: header of the message contains
the given pattern.
To(String)
Filter emails where the To: header of the message contains
the given pattern.
Subject(String)
Filter emails where the Subject: header of the message
contains the given pattern.
Body(String)
Filter emails where one of the text bodies of the message contains the given pattern.
Flag(Flag)
Filter emails where the given flag is included in the email envelope flags.
Trait Implementations§
Source§impl Clone for SearchEmailsFilterQuery
impl Clone for SearchEmailsFilterQuery
Source§fn clone(&self) -> SearchEmailsFilterQuery
fn clone(&self) -> SearchEmailsFilterQuery
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SearchEmailsFilterQuery
impl Debug for SearchEmailsFilterQuery
impl Eq for SearchEmailsFilterQuery
Source§impl Ord for SearchEmailsFilterQuery
impl Ord for SearchEmailsFilterQuery
Source§fn cmp(&self, other: &SearchEmailsFilterQuery) -> Ordering
fn cmp(&self, other: &SearchEmailsFilterQuery) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for SearchEmailsFilterQuery
impl PartialEq for SearchEmailsFilterQuery
Source§fn eq(&self, other: &SearchEmailsFilterQuery) -> bool
fn eq(&self, other: &SearchEmailsFilterQuery) -> bool
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SearchEmailsFilterQuery
impl PartialOrd for SearchEmailsFilterQuery
impl StructuralPartialEq for SearchEmailsFilterQuery
Auto Trait Implementations§
impl Freeze for SearchEmailsFilterQuery
impl RefUnwindSafe for SearchEmailsFilterQuery
impl Send for SearchEmailsFilterQuery
impl Sync for SearchEmailsFilterQuery
impl Unpin for SearchEmailsFilterQuery
impl UnsafeUnpin for SearchEmailsFilterQuery
impl UnwindSafe for SearchEmailsFilterQuery
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.impl<T> OrderedSeq<'_, T> for Twhere
T: Clone,
Source§impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
Source§impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
Source§fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
WrappingSpan::make_wrapped to wrap an AST node in a span.