pub enum Query {
Show 23 variants
Before(UnixTimestamp),
After(UnixTimestamp),
Between(UnixTimestamp, UnixTimestamp),
On(UnixTimestamp),
From(String),
To(String),
Cc(String),
Bcc(String),
InReplyTo(String),
References(String),
AllAddresses(String),
Body(String),
Subject(String),
AllText(String),
Flags(Vec<String>),
HasAttachment,
And(Box<Query>, Box<Query>),
Or(Box<Query>, Box<Query>),
Not(Box<Query>),
Answered,
AnsweredBy {
by: String,
},
Larger {
than: usize,
},
Smaller {
than: usize,
},
}
Variants§
Before(UnixTimestamp)
After(UnixTimestamp)
Between(UnixTimestamp, UnixTimestamp)
On(UnixTimestamp)
From(String)
To(String)
Cc(String)
Bcc(String)
InReplyTo(String)
References(String)
AllAddresses(String)
Body(String)
Subject(String)
AllText(String)
Flags(Vec<String>)
HasAttachment
And(Box<Query>, Box<Query>)
Or(Box<Query>, Box<Query>)
Not(Box<Query>)
Answered
By us.
AnsweredBy
By an address/name.
Larger
Smaller
Trait Implementations§
source§impl<'de> Deserialize<'de> for Query
impl<'de> Deserialize<'de> for Query
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
source§impl PartialEq for Query
impl PartialEq for Query
source§impl ToImapSearch for Query
impl ToImapSearch for Query
source§fn to_imap_search(&self) -> String
fn to_imap_search(&self) -> String
Convert
crate::search::Query
into IMAP search criteria.impl StructuralPartialEq for Query
Auto Trait Implementations§
impl Freeze for Query
impl RefUnwindSafe for Query
impl Send for Query
impl Sync for Query
impl Unpin for Query
impl UnwindSafe for Query
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