[][src]Struct google_people1::PeopleMethods

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]

pub fn connections_list(
    &self,
    resource_name: &str
) -> PeopleConnectionListCall<'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.

pub fn create_contact(
    &self,
    request: Person
) -> PeopleCreateContactCall<'a, C, A>
[src]

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.

pub fn delete_contact(
    &self,
    resource_name: &str
) -> PeopleDeleteContactCall<'a, C, A>
[src]

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.

pub fn get(&self, resource_name: &str) -> PeopleGetCall<'a, C, A>[src]

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.

pub fn update_contact(
    &self,
    request: Person,
    resource_name: &str
) -> PeopleUpdateContactCall<'a, C, A>
[src]

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.

pub fn get_batch_get(&self) -> PeopleGetBatchGetCall<'a, C, A>[src]

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> Unpin for PeopleMethods<'a, C, A>

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

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

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

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.