pub struct GmailMessageGet { /* private fields */ }Expand description
Gmail REST message retrieval, wrapping a GmailMessage response.
Implementations§
Source§impl GmailMessageGet
impl GmailMessageGet
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.messages.get request for the given message id.
metadata_headers filters the returned headers, and only
applies when the format is GmailMessageFormat::Metadata.
Trait Implementations§
Source§impl GmailCoroutine for GmailMessageGet
impl GmailCoroutine for GmailMessageGet
Source§type Yield = GmailYield
type Yield = GmailYield
The I/O request type yielded while the exchange is in progress.
Source§type Return = Result<GmailSendOutput<GmailMessage>, GmailSendError>
type Return = Result<GmailSendOutput<GmailMessage>, GmailSendError>
The terminal value type produced when the exchange completes.
Auto Trait Implementations§
impl Freeze for GmailMessageGet
impl RefUnwindSafe for GmailMessageGet
impl Send for GmailMessageGet
impl Sync for GmailMessageGet
impl Unpin for GmailMessageGet
impl UnsafeUnpin for GmailMessageGet
impl UnwindSafe for GmailMessageGet
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