Struct google_people1::PeopleMethods[][src]

pub struct PeopleMethods<'a, C, A> where
    C: 'a,
    A: 'a, 
{ /* fields omitted */ }

A builder providing access to all methods supported on people 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 `connections_list(...)`, `create_contact(...)`, `delete_contact(...)`, `get(...)`, `get_batch_get(...)` and `update_contact(...)`
// to build up your call.
let rb = hub.people();

Methods

impl<'a, C, A> PeopleMethods<'a, C, A>
[src]

Create a builder to help you perform the following task:

Provides a list of the authenticated user's contacts merged with any connected profiles.
The request throws a 400 error if 'personFields' is not specified.

Arguments

  • resourceName - The resource name to return connections for. Only people/me is valid.

Create a builder to help you perform the following task:

Create a new contact and return the person resource for that contact.

Arguments

  • request - No description provided.

Create a builder to help you perform the following task:

Delete a contact person. Any non-contact data will not be deleted.

Arguments

  • resourceName - The resource name of the contact to delete.

Create a builder to help you perform the following task:

Provides information about a person by specifying a resource name. Use people/me to indicate the authenticated user.
The request throws a 400 error if 'personFields' is not specified.

Arguments

  • resourceName - The resource name of the person to provide information about. - To get information about the authenticated user, specify people/me. - To get information about a google account, specify people/account_id. - To get information about a contact, specify the resource name that identifies the contact as returned by people.connections.list.

Create a builder to help you perform the following task:

Update contact data for an existing contact person. Any non-contact data will not be modified.

The request throws a 400 error if updatePersonFields is not specified.
The request throws a 400 error if person.metadata.sources is not specified for the contact to be updated.
The request throws a 412 error if person.metadata.sources.etag is different than the contact's etag, which indicates the contact has changed since its data was read. Clients should get the latest person and re-apply their updates to the latest person.

Arguments

  • request - No description provided.
  • resourceName - The resource name for the person, assigned by the server. An ASCII string with a max length of 27 characters, in the form of people/person_id.

Create a builder to help you perform the following task:

Provides information about a list of specific people by specifying a list of requested resource names. Use people/me to indicate the authenticated user.
The request throws a 400 error if 'personFields' is not specified.

Trait Implementations

impl<'a, C, A> MethodsBuilder for PeopleMethods<'a, C, A>
[src]

Auto Trait Implementations

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

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