pub struct GmailArgs {Show 14 fields
pub query: Option<String>,
pub label_id: Option<String>,
pub thread_id: Option<String>,
pub headers: Option<String>,
pub max_results: Option<u32>,
pub page_token: Option<String>,
pub to: Option<Vec<String>>,
pub cc: Option<Vec<String>>,
pub bcc: Option<Vec<String>>,
pub subject: Option<String>,
pub body: Option<String>,
pub draft_id: Option<String>,
pub add_label_ids: Option<Vec<String>>,
pub remove_label_ids: Option<Vec<String>>,
}Expand description
The arguments the read actions take. Unknown fields are ignored.
Fields§
§query: Option<String>search_threads: Gmail’s own search syntax (from:alice newer_than:7d).
label_id: Option<String>search_threads: only threads with this label id (from list_labels).
thread_id: Option<String>get_thread: a thread id from search_threads.
headers: Option<String>get_thread: raw adds each message’s header lines as they came.
max_results: Option<u32>§page_token: Option<String>§to: Option<Vec<String>>create_draft, update_draft: the recipients, the subject and the text of the mail.
cc: Option<Vec<String>>§bcc: Option<Vec<String>>§subject: Option<String>§body: Option<String>§draft_id: Option<String>update_draft, send_draft: a draft id from create_draft.
add_label_ids: Option<Vec<String>>label_thread: label ids (from list_labels) to put on the thread and to take off it.
remove_label_ids: Option<Vec<String>>Trait Implementations§
Source§impl<'de> Deserialize<'de> for GmailArgs
impl<'de> Deserialize<'de> for GmailArgs
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 GmailArgs
impl RefUnwindSafe for GmailArgs
impl Send for GmailArgs
impl Sync for GmailArgs
impl Unpin for GmailArgs
impl UnsafeUnpin for GmailArgs
impl UnwindSafe for GmailArgs
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.