pub struct MessageQuery {
pub account_ids: Vec<String>,
pub mailbox: Option<String>,
pub limit: usize,
pub since: Option<DateTime<Utc>>,
pub include_body: bool,
}Expand description
Which messages to read.
Every field has a default, and the defaults reproduce the pre-existing
INBOX-only behaviour: mailbox: None means DEFAULT_MAILBOX, so a
caller that sends {} reads exactly what it read before this query
existed.
Fields§
§account_ids: Vec<String>§mailbox: Option<String>Mailbox selector — a Mailbox::full_name, or a bare leaf name like
"Travel". None reads DEFAULT_MAILBOX.
limit: usize§since: Option<DateTime<Utc>>Drop messages received before this instant. Applied before limit,
so a narrow window still yields the newest limit matches rather than
whatever survives a pre-filtered slice.
include_body: boolTrait Implementations§
Source§impl Clone for MessageQuery
impl Clone for MessageQuery
Source§fn clone(&self) -> MessageQuery
fn clone(&self) -> MessageQuery
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 MessageQuery
impl Debug for MessageQuery
Source§impl Default for MessageQuery
impl Default for MessageQuery
Source§impl<'de> Deserialize<'de> for MessageQuery
impl<'de> Deserialize<'de> for MessageQuery
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
Auto Trait Implementations§
impl Freeze for MessageQuery
impl RefUnwindSafe for MessageQuery
impl Send for MessageQuery
impl Sync for MessageQuery
impl Unpin for MessageQuery
impl UnsafeUnpin for MessageQuery
impl UnwindSafe for MessageQuery
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