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>,
}Expand description
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).
- list tokens (none)
- delete tokens (none)
- get tokens (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§
Source§impl<'de> Deserialize<'de> for Token
impl<'de> Deserialize<'de> for Token
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Resource for Token
impl ResponseResult for Token
Auto Trait Implementations§
impl Freeze for Token
impl RefUnwindSafe for Token
impl Send for Token
impl Sync for Token
impl Unpin for Token
impl UnwindSafe for Token
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more