Enum dropbox_sdk::oauth2::TokenType [−][src]
pub enum TokenType {
ShortLivedAndRefresh,
ShortLived,
LongLived,
}Expand description
What type of access token is requested? If unsure, ShortLivedAndRefresh is probably what you want.
Variants
Return a short-lived bearer token and a long-lived refresh token that can be used to generate new bearer tokens in the future (as long as a user’s approval remains valid). This is the default type for this SDK.
Return just the short-lived bearer token, without refresh token. The app will have to start the authorization flow again to obtain a new token.
👎 Deprecated
Return a long-lived bearer token. The app must be allowed to do this in the Dropbox app console. This capability will be removed in the future.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TokenTypeimpl UnwindSafe for TokenTypeBlanket Implementations
Mutably borrows from an owned value. Read more