pub struct GmailMessageModify { /* private fields */ }Expand description
Gmail REST message label modification, wrapping the updated GmailMessage.
Implementations§
Source§impl GmailMessageModify
impl GmailMessageModify
Sourcepub fn new(
auth: &HttpAuthBearer,
user_id: &str,
id: &str,
add_label_ids: &[String],
remove_label_ids: &[String],
) -> Result<Self, GmailSendError>
pub fn new( auth: &HttpAuthBearer, user_id: &str, id: &str, add_label_ids: &[String], remove_label_ids: &[String], ) -> Result<Self, GmailSendError>
Builds the users.messages.modify request adding and removing
the given label ids on the given message.
Fails with GmailSendError::InvalidRequest when both label
lists are empty.
Trait Implementations§
Source§impl GmailCoroutine for GmailMessageModify
impl GmailCoroutine for GmailMessageModify
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 GmailMessageModify
impl RefUnwindSafe for GmailMessageModify
impl Send for GmailMessageModify
impl Sync for GmailMessageModify
impl Unpin for GmailMessageModify
impl UnsafeUnpin for GmailMessageModify
impl UnwindSafe for GmailMessageModify
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