pub struct GmailDraftCreate { /* private fields */ }Expand description
Gmail REST draft creation, wrapping the created GmailDraft.
Implementations§
Source§impl GmailDraftCreate
impl GmailDraftCreate
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.create request wrapping the given draft.
Trait Implementations§
Source§impl GmailCoroutine for GmailDraftCreate
impl GmailCoroutine for GmailDraftCreate
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 GmailDraftCreate
impl RefUnwindSafe for GmailDraftCreate
impl Send for GmailDraftCreate
impl Sync for GmailDraftCreate
impl Unpin for GmailDraftCreate
impl UnsafeUnpin for GmailDraftCreate
impl UnwindSafe for GmailDraftCreate
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