Struct google_gmail1::UserMethods

source ·
pub struct UserMethods<'a, C, A>
where C: 'a, A: 'a,
{ /* private fields */ }
Expand description

A builder providing access to all methods supported on user resources. It is not used directly, but through the Gmail hub.

§Example

Instantiate a resource builder

extern crate hyper;
extern crate hyper_rustls;
extern crate yup_oauth2 as oauth2;
extern crate google_gmail1 as gmail1;
 
use std::default::Default;
use oauth2::{Authenticator, DefaultAuthenticatorDelegate, ApplicationSecret, MemoryStorage};
use gmail1::Gmail;
 
let secret: ApplicationSecret = Default::default();
let auth = Authenticator::new(&secret, DefaultAuthenticatorDelegate,
                              hyper::Client::with_connector(hyper::net::HttpsConnector::new(hyper_rustls::TlsClient::new())),
                              <MemoryStorage as Default>::default(), None);
let mut hub = Gmail::new(hyper::Client::with_connector(hyper::net::HttpsConnector::new(hyper_rustls::TlsClient::new())), auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `drafts_create(...)`, `drafts_delete(...)`, `drafts_get(...)`, `drafts_list(...)`, `drafts_send(...)`, `drafts_update(...)`, `get_profile(...)`, `history_list(...)`, `labels_create(...)`, `labels_delete(...)`, `labels_get(...)`, `labels_list(...)`, `labels_patch(...)`, `labels_update(...)`, `messages_attachments_get(...)`, `messages_batch_delete(...)`, `messages_batch_modify(...)`, `messages_delete(...)`, `messages_get(...)`, `messages_import(...)`, `messages_insert(...)`, `messages_list(...)`, `messages_modify(...)`, `messages_send(...)`, `messages_trash(...)`, `messages_untrash(...)`, `settings_filters_create(...)`, `settings_filters_delete(...)`, `settings_filters_get(...)`, `settings_filters_list(...)`, `settings_forwarding_addresses_create(...)`, `settings_forwarding_addresses_delete(...)`, `settings_forwarding_addresses_get(...)`, `settings_forwarding_addresses_list(...)`, `settings_get_auto_forwarding(...)`, `settings_get_imap(...)`, `settings_get_pop(...)`, `settings_get_vacation(...)`, `settings_send_as_create(...)`, `settings_send_as_delete(...)`, `settings_send_as_get(...)`, `settings_send_as_list(...)`, `settings_send_as_patch(...)`, `settings_send_as_smime_info_delete(...)`, `settings_send_as_smime_info_get(...)`, `settings_send_as_smime_info_insert(...)`, `settings_send_as_smime_info_list(...)`, `settings_send_as_smime_info_set_default(...)`, `settings_send_as_update(...)`, `settings_send_as_verify(...)`, `settings_update_auto_forwarding(...)`, `settings_update_imap(...)`, `settings_update_pop(...)`, `settings_update_vacation(...)`, `stop(...)`, `threads_delete(...)`, `threads_get(...)`, `threads_list(...)`, `threads_modify(...)`, `threads_trash(...)`, `threads_untrash(...)` and `watch(...)`
// to build up your call.
let rb = hub.users();

Implementations§

source§

impl<'a, C, A> UserMethods<'a, C, A>

source

pub fn settings_update_vacation( &self, request: VacationSettings, user_id: &str, ) -> UserSettingUpdateVacationCall<'a, C, A>

Create a builder to help you perform the following task:

Updates vacation responder settings.

§Arguments
  • request - No description provided.
  • userId - User’s email address. The special value “me” can be used to indicate the authenticated user.
source

pub fn settings_send_as_smime_info_get( &self, user_id: &str, send_as_email: &str, id: &str, ) -> UserSettingSendASmimeInfoGetCall<'a, C, A>

Create a builder to help you perform the following task:

Gets the specified S/MIME config for the specified send-as alias.

§Arguments
  • userId - The user’s email address. The special value me can be used to indicate the authenticated user.
  • sendAsEmail - The email address that appears in the “From:” header for mail sent using this alias.
  • id - The immutable ID for the SmimeInfo.
source

pub fn settings_send_as_list( &self, user_id: &str, ) -> UserSettingSendAListCall<'a, C, A>

Create a builder to help you perform the following task:

Lists the send-as aliases for the specified account. The result includes the primary send-as address associated with the account as well as any custom “from” aliases.

§Arguments
  • userId - User’s email address. The special value “me” can be used to indicate the authenticated user.
source

pub fn settings_get_imap( &self, user_id: &str, ) -> UserSettingGetImapCall<'a, C, A>

Create a builder to help you perform the following task:

Gets IMAP settings.

§Arguments
  • userId - User’s email address. The special value “me” can be used to indicate the authenticated user.
source

pub fn messages_import( &self, request: Message, user_id: &str, ) -> UserMessageImportCall<'a, C, A>

Create a builder to help you perform the following task:

Imports a message into only this user’s mailbox, with standard email delivery scanning and classification similar to receiving via SMTP. Does not send a message.

§Arguments
  • request - No description provided.
  • userId - The user’s email address. The special value me can be used to indicate the authenticated user.
source

pub fn settings_filters_list( &self, user_id: &str, ) -> UserSettingFilterListCall<'a, C, A>

Create a builder to help you perform the following task:

Lists the message filters of a Gmail user.

§Arguments
  • userId - User’s email address. The special value “me” can be used to indicate the authenticated user.
source

pub fn settings_forwarding_addresses_get( &self, user_id: &str, forwarding_email: &str, ) -> UserSettingForwardingAddresseGetCall<'a, C, A>

Create a builder to help you perform the following task:

Gets the specified forwarding address.

§Arguments
  • userId - User’s email address. The special value “me” can be used to indicate the authenticated user.
  • forwardingEmail - The forwarding address to be retrieved.
source

pub fn history_list(&self, user_id: &str) -> UserHistoryListCall<'a, C, A>

Create a builder to help you perform the following task:

Lists the history of all changes to the given mailbox. History results are returned in chronological order (increasing historyId).

§Arguments
  • userId - The user’s email address. The special value me can be used to indicate the authenticated user.
source

pub fn drafts_create( &self, request: Draft, user_id: &str, ) -> UserDraftCreateCall<'a, C, A>

Create a builder to help you perform the following task:

Creates a new draft with the DRAFT label.

§Arguments
  • request - No description provided.
  • userId - The user’s email address. The special value me can be used to indicate the authenticated user.
source

pub fn settings_send_as_get( &self, user_id: &str, send_as_email: &str, ) -> UserSettingSendAGetCall<'a, C, A>

Create a builder to help you perform the following task:

Gets the specified send-as alias. Fails with an HTTP 404 error if the specified address is not a member of the collection.

§Arguments
  • userId - User’s email address. The special value “me” can be used to indicate the authenticated user.
  • sendAsEmail - The send-as alias to be retrieved.
source

pub fn labels_delete( &self, user_id: &str, id: &str, ) -> UserLabelDeleteCall<'a, C, A>

Create a builder to help you perform the following task:

Immediately and permanently deletes the specified label and removes it from any messages and threads that it is applied to.

§Arguments
  • userId - The user’s email address. The special value me can be used to indicate the authenticated user.
  • id - The ID of the label to delete.
source

pub fn labels_get(&self, user_id: &str, id: &str) -> UserLabelGetCall<'a, C, A>

Create a builder to help you perform the following task:

Gets the specified label.

§Arguments
  • userId - The user’s email address. The special value me can be used to indicate the authenticated user.
  • id - The ID of the label to retrieve.
source

pub fn labels_list(&self, user_id: &str) -> UserLabelListCall<'a, C, A>

Create a builder to help you perform the following task:

Lists all labels in the user’s mailbox.

§Arguments
  • userId - The user’s email address. The special value me can be used to indicate the authenticated user.
source

pub fn drafts_send( &self, request: Draft, user_id: &str, ) -> UserDraftSendCall<'a, C, A>

Create a builder to help you perform the following task:

Sends the specified, existing draft to the recipients in the To, Cc, and Bcc headers.

§Arguments
  • request - No description provided.
  • userId - The user’s email address. The special value me can be used to indicate the authenticated user.
source

pub fn messages_untrash( &self, user_id: &str, id: &str, ) -> UserMessageUntrashCall<'a, C, A>

Create a builder to help you perform the following task:

Removes the specified message from the trash.

§Arguments
  • userId - The user’s email address. The special value me can be used to indicate the authenticated user.
  • id - The ID of the message to remove from Trash.
source

pub fn settings_get_pop(&self, user_id: &str) -> UserSettingGetPopCall<'a, C, A>

Create a builder to help you perform the following task:

Gets POP settings.

§Arguments
  • userId - User’s email address. The special value “me” can be used to indicate the authenticated user.
source

pub fn settings_update_pop( &self, request: PopSettings, user_id: &str, ) -> UserSettingUpdatePopCall<'a, C, A>

Create a builder to help you perform the following task:

Updates POP settings.

§Arguments
  • request - No description provided.
  • userId - User’s email address. The special value “me” can be used to indicate the authenticated user.
source

pub fn settings_get_vacation( &self, user_id: &str, ) -> UserSettingGetVacationCall<'a, C, A>

Create a builder to help you perform the following task:

Gets vacation responder settings.

§Arguments
  • userId - User’s email address. The special value “me” can be used to indicate the authenticated user.
source

pub fn messages_batch_delete( &self, request: BatchDeleteMessagesRequest, user_id: &str, ) -> UserMessageBatchDeleteCall<'a, C, A>

Create a builder to help you perform the following task:

Deletes many messages by message ID. Provides no guarantees that messages were not already deleted or even existed at all.

§Arguments
  • request - No description provided.
  • userId - The user’s email address. The special value me can be used to indicate the authenticated user.
source

pub fn messages_delete( &self, user_id: &str, id: &str, ) -> UserMessageDeleteCall<'a, C, A>

Create a builder to help you perform the following task:

Immediately and permanently deletes the specified message. This operation cannot be undone. Prefer messages.trash instead.

§Arguments
  • userId - The user’s email address. The special value me can be used to indicate the authenticated user.
  • id - The ID of the message to delete.
source

pub fn drafts_get(&self, user_id: &str, id: &str) -> UserDraftGetCall<'a, C, A>

Create a builder to help you perform the following task:

Gets the specified draft.

§Arguments
  • userId - The user’s email address. The special value me can be used to indicate the authenticated user.
  • id - The ID of the draft to retrieve.
source

pub fn drafts_update( &self, request: Draft, user_id: &str, id: &str, ) -> UserDraftUpdateCall<'a, C, A>

Create a builder to help you perform the following task:

Replaces a draft’s content.

§Arguments
  • request - No description provided.
  • userId - The user’s email address. The special value me can be used to indicate the authenticated user.
  • id - The ID of the draft to update.
source

pub fn settings_filters_delete( &self, user_id: &str, id: &str, ) -> UserSettingFilterDeleteCall<'a, C, A>

Create a builder to help you perform the following task:

Deletes a filter.

§Arguments
  • userId - User’s email address. The special value “me” can be used to indicate the authenticated user.
  • id - The ID of the filter to be deleted.
source

pub fn threads_list(&self, user_id: &str) -> UserThreadListCall<'a, C, A>

Create a builder to help you perform the following task:

Lists the threads in the user’s mailbox.

§Arguments
  • userId - The user’s email address. The special value me can be used to indicate the authenticated user.
source

pub fn settings_filters_get( &self, user_id: &str, id: &str, ) -> UserSettingFilterGetCall<'a, C, A>

Create a builder to help you perform the following task:

Gets a filter.

§Arguments
  • userId - User’s email address. The special value “me” can be used to indicate the authenticated user.
  • id - The ID of the filter to be fetched.
source

pub fn messages_batch_modify( &self, request: BatchModifyMessagesRequest, user_id: &str, ) -> UserMessageBatchModifyCall<'a, C, A>

Create a builder to help you perform the following task:

Modifies the labels on the specified messages.

§Arguments
  • request - No description provided.
  • userId - The user’s email address. The special value me can be used to indicate the authenticated user.
source

pub fn labels_patch( &self, request: Label, user_id: &str, id: &str, ) -> UserLabelPatchCall<'a, C, A>

Create a builder to help you perform the following task:

Updates the specified label. This method supports patch semantics.

§Arguments
  • request - No description provided.
  • userId - The user’s email address. The special value me can be used to indicate the authenticated user.
  • id - The ID of the label to update.
source

pub fn labels_update( &self, request: Label, user_id: &str, id: &str, ) -> UserLabelUpdateCall<'a, C, A>

Create a builder to help you perform the following task:

Updates the specified label.

§Arguments
  • request - No description provided.
  • userId - The user’s email address. The special value me can be used to indicate the authenticated user.
  • id - The ID of the label to update.
source

pub fn drafts_delete( &self, user_id: &str, id: &str, ) -> UserDraftDeleteCall<'a, C, A>

Create a builder to help you perform the following task:

Immediately and permanently deletes the specified draft. Does not simply trash it.

§Arguments
  • userId - The user’s email address. The special value me can be used to indicate the authenticated user.
  • id - The ID of the draft to delete.
source

pub fn settings_send_as_create( &self, request: SendAs, user_id: &str, ) -> UserSettingSendACreateCall<'a, C, A>

Create a builder to help you perform the following task:

Creates a custom “from” send-as alias. If an SMTP MSA is specified, Gmail will attempt to connect to the SMTP service to validate the configuration before creating the alias. If ownership verification is required for the alias, a message will be sent to the email address and the resource’s verification status will be set to pending; otherwise, the resource will be created with verification status set to accepted. If a signature is provided, Gmail will sanitize the HTML before saving it with the alias.

This method is only available to service account clients that have been delegated domain-wide authority.

§Arguments
  • request - No description provided.
  • userId - User’s email address. The special value “me” can be used to indicate the authenticated user.
source

pub fn settings_update_auto_forwarding( &self, request: AutoForwarding, user_id: &str, ) -> UserSettingUpdateAutoForwardingCall<'a, C, A>

Create a builder to help you perform the following task:

Updates the auto-forwarding setting for the specified account. A verified forwarding address must be specified when auto-forwarding is enabled.

This method is only available to service account clients that have been delegated domain-wide authority.

§Arguments
  • request - No description provided.
  • userId - User’s email address. The special value “me” can be used to indicate the authenticated user.
source

pub fn labels_create( &self, request: Label, user_id: &str, ) -> UserLabelCreateCall<'a, C, A>

Create a builder to help you perform the following task:

Creates a new label.

§Arguments
  • request - No description provided.
  • userId - The user’s email address. The special value me can be used to indicate the authenticated user.
source

pub fn threads_untrash( &self, user_id: &str, id: &str, ) -> UserThreadUntrashCall<'a, C, A>

Create a builder to help you perform the following task:

Removes the specified thread from the trash.

§Arguments
  • userId - The user’s email address. The special value me can be used to indicate the authenticated user.
  • id - The ID of the thread to remove from Trash.
source

pub fn settings_send_as_smime_info_list( &self, user_id: &str, send_as_email: &str, ) -> UserSettingSendASmimeInfoListCall<'a, C, A>

Create a builder to help you perform the following task:

Lists S/MIME configs for the specified send-as alias.

§Arguments
  • userId - The user’s email address. The special value me can be used to indicate the authenticated user.
  • sendAsEmail - The email address that appears in the “From:” header for mail sent using this alias.
source

pub fn settings_send_as_patch( &self, request: SendAs, user_id: &str, send_as_email: &str, ) -> UserSettingSendAPatchCall<'a, C, A>

Create a builder to help you perform the following task:

Updates a send-as alias. If a signature is provided, Gmail will sanitize the HTML before saving it with the alias.

Addresses other than the primary address for the account can only be updated by service account clients that have been delegated domain-wide authority. This method supports patch semantics.

§Arguments
  • request - No description provided.
  • userId - User’s email address. The special value “me” can be used to indicate the authenticated user.
  • sendAsEmail - The send-as alias to be updated.
source

pub fn threads_modify( &self, request: ModifyThreadRequest, user_id: &str, id: &str, ) -> UserThreadModifyCall<'a, C, A>

Create a builder to help you perform the following task:

Modifies the labels applied to the thread. This applies to all messages in the thread.

§Arguments
  • request - No description provided.
  • userId - The user’s email address. The special value me can be used to indicate the authenticated user.
  • id - The ID of the thread to modify.
source

pub fn threads_delete( &self, user_id: &str, id: &str, ) -> UserThreadDeleteCall<'a, C, A>

Create a builder to help you perform the following task:

Immediately and permanently deletes the specified thread. This operation cannot be undone. Prefer threads.trash instead.

§Arguments
  • userId - The user’s email address. The special value me can be used to indicate the authenticated user.
  • id - ID of the Thread to delete.
source

pub fn settings_send_as_smime_info_insert( &self, request: SmimeInfo, user_id: &str, send_as_email: &str, ) -> UserSettingSendASmimeInfoInsertCall<'a, C, A>

Create a builder to help you perform the following task:

Insert (upload) the given S/MIME config for the specified send-as alias. Note that pkcs12 format is required for the key.

§Arguments
  • request - No description provided.
  • userId - The user’s email address. The special value me can be used to indicate the authenticated user.
  • sendAsEmail - The email address that appears in the “From:” header for mail sent using this alias.
source

pub fn messages_attachments_get( &self, user_id: &str, message_id: &str, id: &str, ) -> UserMessageAttachmentGetCall<'a, C, A>

Create a builder to help you perform the following task:

Gets the specified message attachment.

§Arguments
  • userId - The user’s email address. The special value me can be used to indicate the authenticated user.
  • messageId - The ID of the message containing the attachment.
  • id - The ID of the attachment.
source

pub fn messages_modify( &self, request: ModifyMessageRequest, user_id: &str, id: &str, ) -> UserMessageModifyCall<'a, C, A>

Create a builder to help you perform the following task:

Modifies the labels on the specified message.

§Arguments
  • request - No description provided.
  • userId - The user’s email address. The special value me can be used to indicate the authenticated user.
  • id - The ID of the message to modify.
source

pub fn messages_get( &self, user_id: &str, id: &str, ) -> UserMessageGetCall<'a, C, A>

Create a builder to help you perform the following task:

Gets the specified message.

§Arguments
  • userId - The user’s email address. The special value me can be used to indicate the authenticated user.
  • id - The ID of the message to retrieve.
source

pub fn watch( &self, request: WatchRequest, user_id: &str, ) -> UserWatchCall<'a, C, A>

Create a builder to help you perform the following task:

Set up or update a push notification watch on the given user mailbox.

§Arguments
  • request - No description provided.
  • userId - The user’s email address. The special value me can be used to indicate the authenticated user.
source

pub fn settings_forwarding_addresses_create( &self, request: ForwardingAddress, user_id: &str, ) -> UserSettingForwardingAddresseCreateCall<'a, C, A>

Create a builder to help you perform the following task:

Creates a forwarding address. If ownership verification is required, a message will be sent to the recipient and the resource’s verification status will be set to pending; otherwise, the resource will be created with verification status set to accepted.

This method is only available to service account clients that have been delegated domain-wide authority.

§Arguments
  • request - No description provided.
  • userId - User’s email address. The special value “me” can be used to indicate the authenticated user.
source

pub fn drafts_list(&self, user_id: &str) -> UserDraftListCall<'a, C, A>

Create a builder to help you perform the following task:

Lists the drafts in the user’s mailbox.

§Arguments
  • userId - The user’s email address. The special value me can be used to indicate the authenticated user.
source

pub fn settings_update_imap( &self, request: ImapSettings, user_id: &str, ) -> UserSettingUpdateImapCall<'a, C, A>

Create a builder to help you perform the following task:

Updates IMAP settings.

§Arguments
  • request - No description provided.
  • userId - User’s email address. The special value “me” can be used to indicate the authenticated user.
source

pub fn messages_send( &self, request: Message, user_id: &str, ) -> UserMessageSendCall<'a, C, A>

Create a builder to help you perform the following task:

Sends the specified message to the recipients in the To, Cc, and Bcc headers.

§Arguments
  • request - No description provided.
  • userId - The user’s email address. The special value me can be used to indicate the authenticated user.
source

pub fn threads_trash( &self, user_id: &str, id: &str, ) -> UserThreadTrashCall<'a, C, A>

Create a builder to help you perform the following task:

Moves the specified thread to the trash.

§Arguments
  • userId - The user’s email address. The special value me can be used to indicate the authenticated user.
  • id - The ID of the thread to Trash.
source

pub fn stop(&self, user_id: &str) -> UserStopCall<'a, C, A>

Create a builder to help you perform the following task:

Stop receiving push notifications for the given user mailbox.

§Arguments
  • userId - The user’s email address. The special value me can be used to indicate the authenticated user.
source

pub fn settings_send_as_smime_info_set_default( &self, user_id: &str, send_as_email: &str, id: &str, ) -> UserSettingSendASmimeInfoSetDefaultCall<'a, C, A>

Create a builder to help you perform the following task:

Sets the default S/MIME config for the specified send-as alias.

§Arguments
  • userId - The user’s email address. The special value me can be used to indicate the authenticated user.
  • sendAsEmail - The email address that appears in the “From:” header for mail sent using this alias.
  • id - The immutable ID for the SmimeInfo.
source

pub fn messages_list(&self, user_id: &str) -> UserMessageListCall<'a, C, A>

Create a builder to help you perform the following task:

Lists the messages in the user’s mailbox.

§Arguments
  • userId - The user’s email address. The special value me can be used to indicate the authenticated user.
source

pub fn settings_send_as_update( &self, request: SendAs, user_id: &str, send_as_email: &str, ) -> UserSettingSendAUpdateCall<'a, C, A>

Create a builder to help you perform the following task:

Updates a send-as alias. If a signature is provided, Gmail will sanitize the HTML before saving it with the alias.

Addresses other than the primary address for the account can only be updated by service account clients that have been delegated domain-wide authority.

§Arguments
  • request - No description provided.
  • userId - User’s email address. The special value “me” can be used to indicate the authenticated user.
  • sendAsEmail - The send-as alias to be updated.
source

pub fn settings_filters_create( &self, request: Filter, user_id: &str, ) -> UserSettingFilterCreateCall<'a, C, A>

Create a builder to help you perform the following task:

Creates a filter.

§Arguments
  • request - No description provided.
  • userId - User’s email address. The special value “me” can be used to indicate the authenticated user.
source

pub fn settings_send_as_smime_info_delete( &self, user_id: &str, send_as_email: &str, id: &str, ) -> UserSettingSendASmimeInfoDeleteCall<'a, C, A>

Create a builder to help you perform the following task:

Deletes the specified S/MIME config for the specified send-as alias.

§Arguments
  • userId - The user’s email address. The special value me can be used to indicate the authenticated user.
  • sendAsEmail - The email address that appears in the “From:” header for mail sent using this alias.
  • id - The immutable ID for the SmimeInfo.
source

pub fn messages_trash( &self, user_id: &str, id: &str, ) -> UserMessageTrashCall<'a, C, A>

Create a builder to help you perform the following task:

Moves the specified message to the trash.

§Arguments
  • userId - The user’s email address. The special value me can be used to indicate the authenticated user.
  • id - The ID of the message to Trash.
source

pub fn get_profile(&self, user_id: &str) -> UserGetProfileCall<'a, C, A>

Create a builder to help you perform the following task:

Gets the current user’s Gmail profile.

§Arguments
  • userId - The user’s email address. The special value me can be used to indicate the authenticated user.
source

pub fn threads_get( &self, user_id: &str, id: &str, ) -> UserThreadGetCall<'a, C, A>

Create a builder to help you perform the following task:

Gets the specified thread.

§Arguments
  • userId - The user’s email address. The special value me can be used to indicate the authenticated user.
  • id - The ID of the thread to retrieve.
source

pub fn settings_send_as_verify( &self, user_id: &str, send_as_email: &str, ) -> UserSettingSendAVerifyCall<'a, C, A>

Create a builder to help you perform the following task:

Sends a verification email to the specified send-as alias address. The verification status must be pending.

This method is only available to service account clients that have been delegated domain-wide authority.

§Arguments
  • userId - User’s email address. The special value “me” can be used to indicate the authenticated user.
  • sendAsEmail - The send-as alias to be verified.
source

pub fn settings_forwarding_addresses_list( &self, user_id: &str, ) -> UserSettingForwardingAddresseListCall<'a, C, A>

Create a builder to help you perform the following task:

Lists the forwarding addresses for the specified account.

§Arguments
  • userId - User’s email address. The special value “me” can be used to indicate the authenticated user.
source

pub fn messages_insert( &self, request: Message, user_id: &str, ) -> UserMessageInsertCall<'a, C, A>

Create a builder to help you perform the following task:

Directly inserts a message into only this user’s mailbox similar to IMAP APPEND, bypassing most scanning and classification. Does not send a message.

§Arguments
  • request - No description provided.
  • userId - The user’s email address. The special value me can be used to indicate the authenticated user.
source

pub fn settings_get_auto_forwarding( &self, user_id: &str, ) -> UserSettingGetAutoForwardingCall<'a, C, A>

Create a builder to help you perform the following task:

Gets the auto-forwarding setting for the specified account.

§Arguments
  • userId - User’s email address. The special value “me” can be used to indicate the authenticated user.
source

pub fn settings_send_as_delete( &self, user_id: &str, send_as_email: &str, ) -> UserSettingSendADeleteCall<'a, C, A>

Create a builder to help you perform the following task:

Deletes the specified send-as alias. Revokes any verification that may have been required for using it.

This method is only available to service account clients that have been delegated domain-wide authority.

§Arguments
  • userId - User’s email address. The special value “me” can be used to indicate the authenticated user.
  • sendAsEmail - The send-as alias to be deleted.
source

pub fn settings_forwarding_addresses_delete( &self, user_id: &str, forwarding_email: &str, ) -> UserSettingForwardingAddresseDeleteCall<'a, C, A>

Create a builder to help you perform the following task:

Deletes the specified forwarding address and revokes any verification that may have been required.

This method is only available to service account clients that have been delegated domain-wide authority.

§Arguments
  • userId - User’s email address. The special value “me” can be used to indicate the authenticated user.
  • forwardingEmail - The forwarding address to be deleted.

Trait Implementations§

source§

impl<'a, C, A> MethodsBuilder for UserMethods<'a, C, A>

Auto Trait Implementations§

§

impl<'a, C, A> Freeze for UserMethods<'a, C, A>

§

impl<'a, C, A> !RefUnwindSafe for UserMethods<'a, C, A>

§

impl<'a, C, A> !Send for UserMethods<'a, C, A>

§

impl<'a, C, A> !Sync for UserMethods<'a, C, A>

§

impl<'a, C, A> Unpin for UserMethods<'a, C, A>

§

impl<'a, C, A> !UnwindSafe for UserMethods<'a, C, A>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> Typeable for T
where T: Any,

source§

fn get_type(&self) -> TypeId

Get the TypeId of this object.