pub struct GmailSendAsPatch { /* private fields */ }Expand description
I/O-free coroutine patching a send-as alias of a Gmail account
(users.settings.sendAs.patch).
Implementations§
Source§impl GmailSendAsPatch
impl GmailSendAsPatch
Sourcepub fn new(
auth: &HttpAuthBearer,
user_id: &str,
send_as_email: &str,
send_as: &GmailSendAs,
) -> Result<Self, GmailSendError>
pub fn new( auth: &HttpAuthBearer, user_id: &str, send_as_email: &str, send_as: &GmailSendAs, ) -> Result<Self, GmailSendError>
Builds the users.settings.sendAs.patch request for the given alias.
Trait Implementations§
Source§impl GmailCoroutine for GmailSendAsPatch
impl GmailCoroutine for GmailSendAsPatch
Source§type Yield = GmailYield
type Yield = GmailYield
The I/O request type yielded while the exchange is in progress.
Source§type Return = Result<GmailSendOutput<GmailSendAs>, GmailSendError>
type Return = Result<GmailSendOutput<GmailSendAs>, GmailSendError>
The terminal value type produced when the exchange completes.
Auto Trait Implementations§
impl Freeze for GmailSendAsPatch
impl RefUnwindSafe for GmailSendAsPatch
impl Send for GmailSendAsPatch
impl Sync for GmailSendAsPatch
impl Unpin for GmailSendAsPatch
impl UnsafeUnpin for GmailSendAsPatch
impl UnwindSafe for GmailSendAsPatch
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