pub struct SearchParams {
pub mailbox: Option<String>,
pub role: Option<String>,
pub from: Option<String>,
pub to: Option<String>,
pub subject: Option<String>,
pub text: Option<String>,
pub since: Option<String>,
pub before: Option<String>,
pub unread: Option<bool>,
pub flagged: Option<bool>,
pub limit: u32,
pub cursor: Option<String>,
}Expand description
Arguments for mail_search.
Fields§
§mailbox: Option<String>Mailbox path. Omit to use role or the inbox.
role: Option<String>Well-known role: inbox, sent, drafts, trash, junk, archive, notes.
from: Option<String>From header contains this text.
to: Option<String>To header contains this text.
subject: Option<String>Subject contains this text.
text: Option<String>Body or subject contains this text.
since: Option<String>Messages on or after this date.
before: Option<String>Messages before this date.
unread: Option<bool>When set, only unseen messages.
flagged: Option<bool>When set, only flagged messages.
limit: u32Page size. Omitted means 25. More than 100 is rejected.
cursor: Option<String>Cursor from the previous page.
Trait Implementations§
Source§impl Debug for SearchParams
impl Debug for SearchParams
Source§impl Default for SearchParams
impl Default for SearchParams
Source§impl<'de> Deserialize<'de> for SearchParams
impl<'de> Deserialize<'de> for SearchParams
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
Source§impl JsonSchema for SearchParams
impl JsonSchema for SearchParams
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Forget for SearchParams
impl Freeze for SearchParams
impl Move for SearchParams
impl RefUnwindSafe for SearchParams
impl Send for SearchParams
impl Sync for SearchParams
impl Unpin for SearchParams
impl UnsafeUnpin for SearchParams
impl UnwindSafe for SearchParams
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