Struct onedrive_api::TokenResponse [−][src]
#[non_exhaustive]pub struct TokenResponse { pub token_type: String, pub scope: Vec<String>, pub expires_in_secs: u64, pub access_token: String, pub refresh_token: Option<String>, }
Fields (Non-exhaustive)
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct {{ .. }} syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.token_type: StringIndicates the token type value. The only type that Azure AD supports is Bearer.
scope: Vec<String>A list of the Microsoft Graph permissions that the access_token is valid for.
expires_in_secs: u64How long the access token is valid (in seconds).
access_token: Stringrefresh_token: Option<String>The refresh token for refreshing (re-get) an access token when the previous one expired.
This is only returned in code auth flow with offline_access permission.
See also
Trait Implementations
impl<'de> Deserialize<'de> for TokenResponse[src]
impl<'de> Deserialize<'de> for TokenResponse[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl RefUnwindSafe for TokenResponse
impl RefUnwindSafe for TokenResponseimpl Send for TokenResponse
impl Send for TokenResponseimpl Sync for TokenResponse
impl Sync for TokenResponseimpl Unpin for TokenResponse
impl Unpin for TokenResponseimpl UnwindSafe for TokenResponse
impl UnwindSafe for TokenResponseBlanket Implementations
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]impl<T> Instrument for T[src]
impl<T> Instrument for T[src]