pub struct MessageListFilters {Show 13 fields
pub limit: Option<u32>,
pub page_token: Option<String>,
pub labels: Vec<String>,
pub before: Option<String>,
pub after: Option<String>,
pub ascending: Option<bool>,
pub include_spam: Option<bool>,
pub include_blocked: Option<bool>,
pub include_unauthenticated: Option<bool>,
pub include_trash: Option<bool>,
pub from: Vec<String>,
pub to: Vec<String>,
pub subject: Vec<String>,
}Expand description
Filters for list_messages_filtered and
search_messages_page. Pagination fields (limit,
page_token) live here because they share the same query-parameter
namespace as the filter fields.
Fields§
§limit: Option<u32>Maximum items per page.
page_token: Option<String>Cursor from a previous response’s next_page_token.
labels: Vec<String>Filter by labels.
before: Option<String>Only messages before this timestamp (RFC 3339).
after: Option<String>Only messages after this timestamp (RFC 3339).
ascending: Option<bool>Return oldest first instead of newest first.
include_spam: Option<bool>Include spam messages.
include_blocked: Option<bool>Include blocked messages.
include_unauthenticated: Option<bool>Include unauthenticated messages.
include_trash: Option<bool>Include trashed messages.
from: Vec<String>Filter by sender substring (repeatable).
to: Vec<String>Filter by recipient substring – matches to, cc, or bcc (repeatable).
subject: Vec<String>Filter by subject substring (repeatable).
Trait Implementations§
Source§impl Clone for MessageListFilters
impl Clone for MessageListFilters
Source§fn clone(&self) -> MessageListFilters
fn clone(&self) -> MessageListFilters
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 MessageListFilters
impl Debug for MessageListFilters
Source§impl Default for MessageListFilters
impl Default for MessageListFilters
Source§fn default() -> MessageListFilters
fn default() -> MessageListFilters
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MessageListFilters
impl RefUnwindSafe for MessageListFilters
impl Send for MessageListFilters
impl Sync for MessageListFilters
impl Unpin for MessageListFilters
impl UnsafeUnpin for MessageListFilters
impl UnwindSafe for MessageListFilters
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