pub struct GmailDraftSend { /* private fields */ }Expand description
Gmail REST draft send, wrapping the resulting GmailMessageId.
Implementations§
Source§impl GmailDraftSend
impl GmailDraftSend
Sourcepub fn new(
auth: &HttpAuthBearer,
user_id: &str,
draft: &GmailDraft,
) -> Result<Self, GmailSendError>
pub fn new( auth: &HttpAuthBearer, user_id: &str, draft: &GmailDraft, ) -> Result<Self, GmailSendError>
Builds the users.drafts.send request wrapping the given draft.
Trait Implementations§
Source§impl GmailCoroutine for GmailDraftSend
impl GmailCoroutine for GmailDraftSend
Source§type Yield = GmailYield
type Yield = GmailYield
The I/O request type yielded while the exchange is in progress.
Source§type Return = Result<GmailSendOutput<GmailMessageId>, GmailSendError>
type Return = Result<GmailSendOutput<GmailMessageId>, GmailSendError>
The terminal value type produced when the exchange completes.
Auto Trait Implementations§
impl Freeze for GmailDraftSend
impl RefUnwindSafe for GmailDraftSend
impl Send for GmailDraftSend
impl Sync for GmailDraftSend
impl Unpin for GmailDraftSend
impl UnsafeUnpin for GmailDraftSend
impl UnwindSafe for GmailDraftSend
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