Struct google_people1::api::ContactGroupMethods
source · [−]pub struct ContactGroupMethods<'a> { /* private fields */ }
Expand description
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 google_people1 as people1;
use std::default::Default;
use people1::{PeopleService, oauth2, hyper, hyper_rustls};
let secret: oauth2::ApplicationSecret = Default::default();
let auth = oauth2::InstalledFlowAuthenticator::builder(
secret,
oauth2::InstalledFlowReturnMethod::HTTPRedirect,
).build().await.unwrap();
let mut hub = PeopleService::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), 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();
Implementations
sourceimpl<'a> ContactGroupMethods<'a>
impl<'a> ContactGroupMethods<'a>
sourcepub fn members_modify(
&self,
request: ModifyContactGroupMembersRequest,
resource_name: &str
) -> ContactGroupMemberModifyCall<'a>
pub fn members_modify(
&self,
request: ModifyContactGroupMembersRequest,
resource_name: &str
) -> ContactGroupMemberModifyCall<'a>
Create a builder to help you perform the following task:
Modify the members of a contact group owned by the authenticated user. The only system contact groups that can have members added are contactGroups/myContacts
and contactGroups/starred
. Other system contact groups are deprecated and can only have contacts removed.
Arguments
request
- No description provided.resourceName
- Required. The resource name of the contact group to modify.
sourcepub fn batch_get(&self) -> ContactGroupBatchGetCall<'a>
pub fn batch_get(&self) -> ContactGroupBatchGetCall<'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.
sourcepub fn create(
&self,
request: CreateContactGroupRequest
) -> ContactGroupCreateCall<'a>
pub fn create(
&self,
request: CreateContactGroupRequest
) -> ContactGroupCreateCall<'a>
Create a builder to help you perform the following task:
Create a new contact group owned by the authenticated user. Created contact group names must be unique to the users contact groups. Attempting to create a group with a duplicate name will return a HTTP 409 error. Mutate requests for the same user should be sent sequentially to avoid increased latency and failures.
Arguments
request
- No description provided.
sourcepub fn delete(&self, resource_name: &str) -> ContactGroupDeleteCall<'a>
pub fn delete(&self, resource_name: &str) -> ContactGroupDeleteCall<'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. Mutate requests for the same user should be sent sequentially to avoid increased latency and failures.
Arguments
resourceName
- Required. The resource name of the contact group to delete.
sourcepub fn get(&self, resource_name: &str) -> ContactGroupGetCall<'a>
pub fn get(&self, resource_name: &str) -> ContactGroupGetCall<'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
- Required. The resource name of the contact group to get.
sourcepub fn list(&self) -> ContactGroupListCall<'a>
pub fn list(&self) -> ContactGroupListCall<'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.
sourcepub fn update(
&self,
request: UpdateContactGroupRequest,
resource_name: &str
) -> ContactGroupUpdateCall<'a>
pub fn update(
&self,
request: UpdateContactGroupRequest,
resource_name: &str
) -> ContactGroupUpdateCall<'a>
Create a builder to help you perform the following task:
Update the name of an existing contact group owned by the authenticated user. Updated contact group names must be unique to the users contact groups. Attempting to create a group with a duplicate name will return a HTTP 409 error. Mutate requests for the same user should be sent sequentially to avoid increased latency and failures.
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}
.
Trait Implementations
impl<'a> MethodsBuilder for ContactGroupMethods<'a>
Auto Trait Implementations
impl<'a> !RefUnwindSafe for ContactGroupMethods<'a>
impl<'a> Send for ContactGroupMethods<'a>
impl<'a> Sync for ContactGroupMethods<'a>
impl<'a> Unpin for ContactGroupMethods<'a>
impl<'a> !UnwindSafe for ContactGroupMethods<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more