pub struct GmailDraftUpdate { /* private fields */ }Expand description
Gmail REST draft update, wrapping the updated GmailDraft.
Implementations§
Source§impl GmailDraftUpdate
impl GmailDraftUpdate
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.update request wrapping the given draft,
addressed by its id.
Trait Implementations§
Source§impl GmailCoroutine for GmailDraftUpdate
impl GmailCoroutine for GmailDraftUpdate
Source§type Yield = GmailYield
type Yield = GmailYield
The I/O request type yielded while the exchange is in progress.
Source§type Return = Result<GmailSendOutput<GmailDraft>, GmailSendError>
type Return = Result<GmailSendOutput<GmailDraft>, GmailSendError>
The terminal value type produced when the exchange completes.
Auto Trait Implementations§
impl Freeze for GmailDraftUpdate
impl RefUnwindSafe for GmailDraftUpdate
impl Send for GmailDraftUpdate
impl Sync for GmailDraftUpdate
impl Unpin for GmailDraftUpdate
impl UnsafeUnpin for GmailDraftUpdate
impl UnwindSafe for GmailDraftUpdate
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