pub struct GmailMessageInsert { /* private fields */ }Expand description
Gmail REST message insert, wrapping the inserted GmailMessage.
Implementations§
Source§impl GmailMessageInsert
impl GmailMessageInsert
Sourcepub fn new(
auth: &HttpAuthBearer,
user_id: &str,
message: &GmailMessage,
internal_date_source: Option<GmailInternalDateSource>,
deleted: bool,
) -> Result<Self, GmailSendError>
pub fn new( auth: &HttpAuthBearer, user_id: &str, message: &GmailMessage, internal_date_source: Option<GmailInternalDateSource>, deleted: bool, ) -> Result<Self, GmailSendError>
Builds the users.messages.insert request for the given message.
deleted marks the message as permanently deleted (not
trashed), visible only in Google Vault.
Trait Implementations§
Source§impl GmailCoroutine for GmailMessageInsert
impl GmailCoroutine for GmailMessageInsert
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 GmailMessageInsert
impl RefUnwindSafe for GmailMessageInsert
impl Send for GmailMessageInsert
impl Sync for GmailMessageInsert
impl Unpin for GmailMessageInsert
impl UnsafeUnpin for GmailMessageInsert
impl UnwindSafe for GmailMessageInsert
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