pub struct GmailMessageImport { /* private fields */ }Expand description
Gmail REST message import, wrapping the imported GmailMessage.
Implementations§
Source§impl GmailMessageImport
impl GmailMessageImport
Sourcepub fn new(
auth: &HttpAuthBearer,
user_id: &str,
message: &GmailMessage,
internal_date_source: Option<GmailInternalDateSource>,
deleted: bool,
never_mark_spam: bool,
process_for_calendar: bool,
) -> Result<Self, GmailSendError>
pub fn new( auth: &HttpAuthBearer, user_id: &str, message: &GmailMessage, internal_date_source: Option<GmailInternalDateSource>, deleted: bool, never_mark_spam: bool, process_for_calendar: bool, ) -> Result<Self, GmailSendError>
Builds the users.messages.import 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 GmailMessageImport
impl GmailCoroutine for GmailMessageImport
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 GmailMessageImport
impl RefUnwindSafe for GmailMessageImport
impl Send for GmailMessageImport
impl Sync for GmailMessageImport
impl Unpin for GmailMessageImport
impl UnsafeUnpin for GmailMessageImport
impl UnwindSafe for GmailMessageImport
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