Struct google_displayvideo1::api::UserMethods[][src]

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

A builder providing access to all methods supported on user resources. It is not used directly, but through the DisplayVideo hub.

Example

Instantiate a resource builder

extern crate hyper;
extern crate hyper_rustls;
extern crate yup_oauth2 as oauth2;
extern crate google_displayvideo1 as displayvideo1;
 
use std::default::Default;
use oauth2;
use displayvideo1::DisplayVideo;
 
let secret: oauth2::ApplicationSecret = Default::default();
let auth = yup_oauth2::InstalledFlowAuthenticator::builder(
        secret,
        yup_oauth2::InstalledFlowReturnMethod::HTTPRedirect,
    ).build().await.unwrap();
let mut hub = DisplayVideo::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `bulk_edit_assigned_user_roles(...)`, `create(...)`, `delete(...)`, `get(...)`, `list(...)` and `patch(...)`
// to build up your call.
let rb = hub.users();

Implementations

impl<'a, C> UserMethods<'a, C>[src]

pub fn bulk_edit_assigned_user_roles(
    &self,
    request: BulkEditAssignedUserRolesRequest,
    user_id: &str
) -> UserBulkEditAssignedUserRoleCall<'a, C>
[src]

Create a builder to help you perform the following task:

Bulk edits user roles for a user. The operation will delete the assigned user roles provided in BulkEditAssignedUserRolesRequest.deletedAssignedUserRoles and then assign the user roles provided in BulkEditAssignedUserRolesRequest.createdAssignedUserRoles.

Arguments

  • request - No description provided.
  • userId - Required. The ID of the user to which the assigned user roles belong.

pub fn create(&self, request: User) -> UserCreateCall<'a, C>[src]

Create a builder to help you perform the following task:

Creates a new user. Returns the newly created user if successful.

Arguments

  • request - No description provided.

pub fn delete(&self, user_id: &str) -> UserDeleteCall<'a, C>[src]

Create a builder to help you perform the following task:

Deletes a user.

Arguments

  • userId - Required. The ID of the user to delete.

pub fn get(&self, user_id: &str) -> UserGetCall<'a, C>[src]

Create a builder to help you perform the following task:

Gets a user.

Arguments

  • userId - Required. The ID of the user to fetch.

pub fn list(&self) -> UserListCall<'a, C>[src]

Create a builder to help you perform the following task:

Lists users that are accessible to the current user. If two users have user roles on the same partner or advertiser, they can access each other.

pub fn patch(&self, request: User, user_id: &str) -> UserPatchCall<'a, C>[src]

Create a builder to help you perform the following task:

Updates an existing user. Returns the updated user if successful.

Arguments

  • request - No description provided.
  • userId - Output only. The unique ID of the user. Assigned by the system.

Trait Implementations

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

Auto Trait Implementations

impl<'a, C> !RefUnwindSafe for UserMethods<'a, C>

impl<'a, C> !Send for UserMethods<'a, C>

impl<'a, C> !Sync for UserMethods<'a, C>

impl<'a, C> Unpin for UserMethods<'a, C>

impl<'a, C> !UnwindSafe for UserMethods<'a, C>

Blanket Implementations

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

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

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

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

impl<T> Instrument 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.