Struct google_people1::ContactGroupMethods [−][src]
pub struct ContactGroupMethods<'a, C, A> where
C: 'a,
A: 'a, { /* fields omitted */ }
A builder providing access to all methods supported on contactGroup resources.
It is not used directly, but through the PeopleService
hub.
Example
Instantiate a resource builder
extern crate hyper; extern crate hyper_rustls; extern crate yup_oauth2 as oauth2; extern crate google_people1 as people1; use std::default::Default; use oauth2::{Authenticator, DefaultAuthenticatorDelegate, ApplicationSecret, MemoryStorage}; use people1::PeopleService; 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 = PeopleService::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 `batch_get(...)`, `create(...)`, `delete(...)`, `get(...)`, `list(...)`, `members_modify(...)` and `update(...)` // to build up your call. let rb = hub.contact_groups();
Methods
impl<'a, C, A> ContactGroupMethods<'a, C, A>
[src]
impl<'a, C, A> ContactGroupMethods<'a, C, A>
pub fn batch_get(&self) -> ContactGroupBatchGetCall<'a, C, A>
[src]
pub fn batch_get(&self) -> ContactGroupBatchGetCall<'a, C, A>
Create a builder to help you perform the following task:
Get a list of contact groups owned by the authenticated user by specifying a list of contact group resource names.
pub fn list(&self) -> ContactGroupListCall<'a, C, A>
[src]
pub fn list(&self) -> ContactGroupListCall<'a, C, A>
Create a builder to help you perform the following task:
List all contact groups owned by the authenticated user. Members of the contact groups are not populated.
pub fn create(
&self,
request: CreateContactGroupRequest
) -> ContactGroupCreateCall<'a, C, A>
[src]
pub fn create(
&self,
request: CreateContactGroupRequest
) -> ContactGroupCreateCall<'a, C, A>
Create a builder to help you perform the following task:
Create a new contact group owned by the authenticated user.
Arguments
request
- No description provided.
pub fn update(
&self,
request: UpdateContactGroupRequest,
resource_name: &str
) -> ContactGroupUpdateCall<'a, C, A>
[src]
pub fn update(
&self,
request: UpdateContactGroupRequest,
resource_name: &str
) -> ContactGroupUpdateCall<'a, C, A>
Create a builder to help you perform the following task:
Update the name of an existing contact group owned by the authenticated user.
Arguments
request
- No description provided.resourceName
- The resource name for the contact group, assigned by the server. An ASCII string, in the form ofcontactGroups/
contact_group_id.
pub fn delete(&self, resource_name: &str) -> ContactGroupDeleteCall<'a, C, A>
[src]
pub fn delete(&self, resource_name: &str) -> ContactGroupDeleteCall<'a, C, A>
Create a builder to help you perform the following task:
Delete an existing contact group owned by the authenticated user by specifying a contact group resource name.
Arguments
resourceName
- The resource name of the contact group to delete.
pub fn members_modify(
&self,
request: ModifyContactGroupMembersRequest,
resource_name: &str
) -> ContactGroupMemberModifyCall<'a, C, A>
[src]
pub fn members_modify(
&self,
request: ModifyContactGroupMembersRequest,
resource_name: &str
) -> ContactGroupMemberModifyCall<'a, C, A>
Create a builder to help you perform the following task:
Modify the members of a contact group owned by the authenticated user.
Arguments
request
- No description provided.resourceName
- The resource name of the contact group to modify.
pub fn get(&self, resource_name: &str) -> ContactGroupGetCall<'a, C, A>
[src]
pub fn get(&self, resource_name: &str) -> ContactGroupGetCall<'a, C, A>
Create a builder to help you perform the following task:
Get a specific contact group owned by the authenticated user by specifying a contact group resource name.
Arguments
resourceName
- The resource name of the contact group to get.
Trait Implementations
impl<'a, C, A> MethodsBuilder for ContactGroupMethods<'a, C, A>
[src]
impl<'a, C, A> MethodsBuilder for ContactGroupMethods<'a, C, A>
Auto Trait Implementations
impl<'a, C, A> !Send for ContactGroupMethods<'a, C, A>
impl<'a, C, A> !Send for ContactGroupMethods<'a, C, A>
impl<'a, C, A> !Sync for ContactGroupMethods<'a, C, A>
impl<'a, C, A> !Sync for ContactGroupMethods<'a, C, A>