pub struct MessageQueryParams {Show 16 fields
pub subject: Option<String>,
pub from: Option<String>,
pub to: Option<String>,
pub cc: Option<String>,
pub bcc: Option<String>,
pub any_email: Option<String>,
pub thread_id: Option<String>,
pub unread: Option<bool>,
pub starred: Option<bool>,
pub has_attachment: Option<bool>,
pub received_before: Option<i64>,
pub received_after: Option<i64>,
pub in_: Option<String>,
pub limit: Option<u32>,
pub page_token: Option<String>,
pub query_imap: Option<String>,
}Expand description
Query parameters for listing messages.
§Example
let params = MessageQueryParams::builder()
.subject("invoice")
.unread(true)
.limit(50)
.build();Fields§
§subject: Option<String>Filter by subject (substring match).
from: Option<String>Filter by sender email.
to: Option<String>Filter by recipient email (to field).
cc: Option<String>Filter by CC recipient email.
bcc: Option<String>Filter by BCC recipient email.
any_email: Option<String>Filter by any email (to, from, cc, bcc).
thread_id: Option<String>Filter by thread ID.
unread: Option<bool>Filter by unread status.
starred: Option<bool>Filter by starred status.
has_attachment: Option<bool>Filter by messages with attachments.
received_before: Option<i64>Filter messages received before this timestamp.
received_after: Option<i64>Filter messages received after this timestamp.
in_: Option<String>Filter by folder ID.
limit: Option<u32>Maximum number of results to return.
page_token: Option<String>Page token for pagination.
query_imap: Option<String>IMAP-specific search query.
Uses IMAP SEARCH syntax. Only works with IMAP providers.
§Example
use nylas_types::MessageQueryParams;
let params = MessageQueryParams::builder()
.query_imap("FROM \"sender@example.com\" SUBJECT \"invoice\"")
.build();Implementations§
Source§impl MessageQueryParams
impl MessageQueryParams
Sourcepub fn builder() -> MessageQueryParamsBuilder
pub fn builder() -> MessageQueryParamsBuilder
Create a new builder for message query parameters.
Trait Implementations§
Source§impl Clone for MessageQueryParams
impl Clone for MessageQueryParams
Source§fn clone(&self) -> MessageQueryParams
fn clone(&self) -> MessageQueryParams
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 MessageQueryParams
impl Debug for MessageQueryParams
Source§impl Default for MessageQueryParams
impl Default for MessageQueryParams
Source§fn default() -> MessageQueryParams
fn default() -> MessageQueryParams
Returns the “default value” for a type. Read more
impl Eq for MessageQueryParams
Source§impl PartialEq for MessageQueryParams
impl PartialEq for MessageQueryParams
Source§fn eq(&self, other: &MessageQueryParams) -> bool
fn eq(&self, other: &MessageQueryParams) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MessageQueryParams
impl Serialize for MessageQueryParams
impl StructuralPartialEq for MessageQueryParams
Auto Trait Implementations§
impl Freeze for MessageQueryParams
impl RefUnwindSafe for MessageQueryParams
impl Send for MessageQueryParams
impl Sync for MessageQueryParams
impl Unpin for MessageQueryParams
impl UnsafeUnpin for MessageQueryParams
impl UnwindSafe for MessageQueryParams
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