Struct gsuite_api::tokens::Tokens[][src]

pub struct Tokens {
    pub client: Client,
}

Fields

client: Client

Implementations

This function performs a GET to the /admin/directory/v1/users/{userKey}/tokens endpoint.

Returns the set of tokens specified user has issued to 3rd party applications.

Parameters:

  • user_key: &str – Identifies the user in the API request. The value can be the user’s primary email address, alias email address, or unique user ID.

This function performs a GET to the /admin/directory/v1/users/{userKey}/tokens/{clientId} endpoint.

Gets information about an access token issued by a user.

Parameters:

  • user_key: &str – Identifies the user in the API request. The value can be the user’s primary email address, alias email address, or unique user ID.
  • client_id: &str – The Client ID of the application the token is issued to.

This function performs a DELETE to the /admin/directory/v1/users/{userKey}/tokens/{clientId} endpoint.

Deletes all access tokens issued by a user for an application.

Parameters:

  • user_key: &str – Identifies the user in the API request. The value can be the user’s primary email address, alias email address, or unique user ID.
  • client_id: &str – The Client ID of the application the token is issued to.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.