pub enum Filter {
Show 24 variants
InMailbox {
value: String,
},
InMailboxOtherThan {
value: Vec<String>,
},
Before {
value: DateTime<Utc>,
},
After {
value: DateTime<Utc>,
},
MinSize {
value: u32,
},
MaxSize {
value: u32,
},
AllInThreadHaveKeyword {
value: String,
},
SomeInThreadHaveKeyword {
value: String,
},
NoneInThreadHaveKeyword {
value: String,
},
HasKeyword {
value: String,
},
NotKeyword {
value: String,
},
HasAttachment {
value: bool,
},
Text {
value: String,
},
From {
value: String,
},
To {
value: String,
},
Cc {
value: String,
},
Bcc {
value: String,
},
Subject {
value: String,
},
Body {
value: String,
},
Header {
value: Vec<String>,
},
Id {
value: Vec<String>,
},
SentBefore {
value: DateTime<Utc>,
},
SentAfter {
value: DateTime<Utc>,
},
InThread {
value: String,
},
}Variants
InMailbox
Fields
value: StringInMailboxOtherThan
Before
After
MinSize
Fields
value: u32MaxSize
Fields
value: u32AllInThreadHaveKeyword
Fields
value: StringSomeInThreadHaveKeyword
Fields
value: StringNoneInThreadHaveKeyword
Fields
value: StringHasKeyword
Fields
value: StringNotKeyword
Fields
value: StringHasAttachment
Fields
value: boolText
Fields
value: StringFrom
Fields
value: StringTo
Fields
value: StringCc
Fields
value: StringBcc
Fields
value: StringSubject
Fields
value: StringBody
Fields
value: StringHeader
Id
SentBefore
SentAfter
InThread
Fields
value: StringImplementations
sourceimpl Filter
impl Filter
pub fn in_mailbox(value: impl Into<String>) -> Self
pub fn in_mailbox_other_than<U, V>(value: U) -> Selfwhere
U: IntoIterator<Item = V>,
V: Into<String>,
pub fn before(value: i64) -> Self
pub fn after(value: i64) -> Self
pub fn min_size(value: u32) -> Self
pub fn max_size(value: u32) -> Self
pub fn all_in_thread_have_keyword(value: impl Into<String>) -> Self
pub fn some_in_thread_have_keyword(value: impl Into<String>) -> Self
pub fn none_in_thread_have_keyword(value: impl Into<String>) -> Self
pub fn has_keyword(value: impl Into<String>) -> Self
pub fn not_keyword(value: impl Into<String>) -> Self
pub fn has_attachment(value: bool) -> Self
pub fn text(value: impl Into<String>) -> Self
pub fn from(value: impl Into<String>) -> Self
pub fn to(value: impl Into<String>) -> Self
pub fn cc(value: impl Into<String>) -> Self
pub fn bcc(value: impl Into<String>) -> Self
pub fn subject(value: impl Into<String>) -> Self
pub fn body(value: impl Into<String>) -> Self
pub fn header(header: impl Into<String>, v: Option<impl Into<String>>) -> Self
pub fn id<U, V>(value: U) -> Selfwhere
U: IntoIterator<Item = V>,
V: Into<String>,
pub fn sent_before(value: i64) -> Self
pub fn sent_after(value: i64) -> Self
pub fn in_thread(value: impl Into<String>) -> Self
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Filter
impl Send for Filter
impl Sync for Filter
impl Unpin for Filter
impl UnwindSafe for Filter
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more