[][src]Struct google_admin1_directory::Token

pub struct Token {
    pub scopes: Option<Vec<String>>,
    pub kind: Option<String>,
    pub client_id: Option<String>,
    pub native_app: Option<bool>,
    pub display_text: Option<String>,
    pub etag: Option<String>,
    pub anonymous: Option<bool>,
    pub user_key: Option<String>,
}

JSON template for token resource in Directory API.

Activities

This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).

Fields

scopes: Option<Vec<String>>

A list of authorization scopes the application is granted.

kind: Option<String>

The type of the API resource. This is always admin#directory#token.

client_id: Option<String>

The Client ID of the application the token is issued to.

native_app: Option<bool>

Whether the token is issued to an installed application. The value is true if the application is installed to a desktop or mobile device.

display_text: Option<String>

The displayable name of the application the token is issued to.

etag: Option<String>

ETag of the resource.

anonymous: Option<bool>

Whether the application is registered with Google. The value is true if the application has an anonymous Client ID.

user_key: Option<String>

The unique ID of the user that issued the token.

Trait Implementations

impl Clone for Token[src]

impl Debug for Token[src]

impl Default for Token[src]

impl<'de> Deserialize<'de> for Token[src]

impl Resource for Token[src]

impl ResponseResult for Token[src]

impl Serialize for Token[src]

Auto Trait Implementations

impl RefUnwindSafe for Token

impl Send for Token

impl Sync for Token

impl Unpin for Token

impl UnwindSafe for Token

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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> Typeable for T where
    T: Any