pub struct GmailCodeQuery {
pub query: Option<String>,
pub from: Option<String>,
pub subject: Option<String>,
pub newer_than: Option<String>,
pub unread: bool,
pub max_results: u32,
pub label_ids: Vec<String>,
}Expand description
Search parameters for finding Gmail verification-code messages.
Fields§
§query: Option<String>Raw Gmail search expression appended after structured filters.
from: Option<String>Optional sender filter.
subject: Option<String>Optional subject filter.
newer_than: Option<String>Optional Gmail newer_than: value such as 10m, 2h, or 7d.
unread: boolRestricts results to unread messages when true.
max_results: u32Maximum number of messages to inspect.
label_ids: Vec<String>Gmail label ids, for example INBOX.
Implementations§
Source§impl GmailCodeQuery
impl GmailCodeQuery
Sourcepub fn newer_than(self, value: impl Into<String>) -> Self
pub fn newer_than(self, value: impl Into<String>) -> Self
Adds a Gmail newer_than: filter, for example 10m, 2h, or 7d.
Sourcepub const fn max_results(self, value: u32) -> Self
pub const fn max_results(self, value: u32) -> Self
Sets the maximum number of messages to inspect. Values are clamped to 1..=100.
Trait Implementations§
Source§impl Clone for GmailCodeQuery
impl Clone for GmailCodeQuery
Source§fn clone(&self) -> GmailCodeQuery
fn clone(&self) -> GmailCodeQuery
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 GmailCodeQuery
impl Debug for GmailCodeQuery
Source§impl Default for GmailCodeQuery
impl Default for GmailCodeQuery
Source§impl PartialEq for GmailCodeQuery
impl PartialEq for GmailCodeQuery
Source§fn eq(&self, other: &GmailCodeQuery) -> bool
fn eq(&self, other: &GmailCodeQuery) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for GmailCodeQuery
impl StructuralPartialEq for GmailCodeQuery
Auto Trait Implementations§
impl Freeze for GmailCodeQuery
impl RefUnwindSafe for GmailCodeQuery
impl Send for GmailCodeQuery
impl Sync for GmailCodeQuery
impl Unpin for GmailCodeQuery
impl UnsafeUnpin for GmailCodeQuery
impl UnwindSafe for GmailCodeQuery
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