pub struct GmailThreadGet { /* private fields */ }Expand description
Gmail REST thread retrieval, wrapping a GmailThread response.
Implementations§
Source§impl GmailThreadGet
impl GmailThreadGet
Sourcepub fn new(
auth: &HttpAuthBearer,
user_id: &str,
id: &str,
format: GmailMessageFormat,
metadata_headers: &[&str],
) -> Result<Self, GmailSendError>
pub fn new( auth: &HttpAuthBearer, user_id: &str, id: &str, format: GmailMessageFormat, metadata_headers: &[&str], ) -> Result<Self, GmailSendError>
Builds the users.threads.get request for the given thread id
and message format.
The metadata headers only apply when the format is
GmailMessageFormat::Metadata.
Trait Implementations§
Source§impl GmailCoroutine for GmailThreadGet
impl GmailCoroutine for GmailThreadGet
Source§type Yield = GmailYield
type Yield = GmailYield
The I/O request type yielded while the exchange is in progress.
Source§type Return = Result<GmailSendOutput<GmailThread>, GmailSendError>
type Return = Result<GmailSendOutput<GmailThread>, GmailSendError>
The terminal value type produced when the exchange completes.
Auto Trait Implementations§
impl Freeze for GmailThreadGet
impl RefUnwindSafe for GmailThreadGet
impl Send for GmailThreadGet
impl Sync for GmailThreadGet
impl Unpin for GmailThreadGet
impl UnsafeUnpin for GmailThreadGet
impl UnwindSafe for GmailThreadGet
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