[−][src]Struct google_people1::PeopleMethods
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(...)`, `delete_contact_photo(...)`, `get(...)`, `get_batch_get(...)`, `update_contact(...)` and `update_contact_photo(...)` // to build up your call. let rb = hub.people();
Methods
impl<'a, C, A> PeopleMethods<'a, C, A>
[src]
pub fn delete_contact_photo(
&self,
resource_name: &str
) -> PeopleDeleteContactPhotoCall<'a, C, A>
[src]
&self,
resource_name: &str
) -> PeopleDeleteContactPhotoCall<'a, C, A>
Create a builder to help you perform the following task:
Delete a contact's photo.
Arguments
resourceName
- Required. The resource name of the contact whose photo will be deleted.
pub fn connections_list(
&self,
resource_name: &str
) -> PeopleConnectionListCall<'a, C, A>
[src]
&self,
resource_name: &str
) -> PeopleConnectionListCall<'a, C, A>
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
- Required. The resource name to return connections for. Onlypeople/me
is valid.
pub fn create_contact(
&self,
request: Person
) -> PeopleCreateContactCall<'a, C, A>
[src]
&self,
request: Person
) -> PeopleCreateContactCall<'a, C, A>
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]
&self,
resource_name: &str
) -> PeopleDeleteContactCall<'a, C, A>
Create a builder to help you perform the following task:
Delete a contact person. Any non-contact data will not be deleted.
Arguments
resourceName
- Required. 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
- Required. The resource name of the person to provide information about. - To get information about the authenticated user, specifypeople/me
. - To get information about a google account, specifypeople/{account_id}
. - To get information about a contact, specify the resource name that identifies the contact as returned bypeople.connections.list
.
pub fn update_contact(
&self,
request: Person,
resource_name: &str
) -> PeopleUpdateContactCall<'a, C, A>
[src]
&self,
request: Person,
resource_name: &str
) -> PeopleUpdateContactCall<'a, C, A>
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 400 error with an error with reason
"failedPrecondition"
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 ofpeople/{person_id}
.
pub fn update_contact_photo(
&self,
request: UpdateContactPhotoRequest,
resource_name: &str
) -> PeopleUpdateContactPhotoCall<'a, C, A>
[src]
&self,
request: UpdateContactPhotoRequest,
resource_name: &str
) -> PeopleUpdateContactPhotoCall<'a, C, A>
Create a builder to help you perform the following task:
Update a contact's photo.
Arguments
request
- No description provided.resourceName
- Required. Person resource name
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> !RefUnwindSafe for PeopleMethods<'a, C, A>
impl<'a, C, A> !Send for PeopleMethods<'a, C, A>
impl<'a, C, A> !Sync for PeopleMethods<'a, C, A>
impl<'a, C, A> Unpin for PeopleMethods<'a, C, A>
impl<'a, C, A> !UnwindSafe for PeopleMethods<'a, C, A>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Typeable for T where
T: Any,
T: Any,