pub struct GmailThreadModify { /* private fields */ }Expand description
Gmail REST thread label modification, wrapping the updated GmailThread.
Implementations§
Source§impl GmailThreadModify
impl GmailThreadModify
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.threads.modify request from the given label ids.
Fails with GmailSendError::InvalidRequest when both label id
lists are empty.
Trait Implementations§
Source§impl GmailCoroutine for GmailThreadModify
impl GmailCoroutine for GmailThreadModify
Source§type Yield = GmailYield
type Yield = GmailYield
The I/O request type yielded while the exchange is in progress.
Source§type Return = Result<GmailSendOutput<GmailThread>, GmailSendError>
type Return = Result<GmailSendOutput<GmailThread>, GmailSendError>
The terminal value type produced when the exchange completes.
Auto Trait Implementations§
impl Freeze for GmailThreadModify
impl RefUnwindSafe for GmailThreadModify
impl Send for GmailThreadModify
impl Sync for GmailThreadModify
impl Unpin for GmailThreadModify
impl UnsafeUnpin for GmailThreadModify
impl UnwindSafe for GmailThreadModify
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