pub enum TokenType {
ShortLivedAndRefresh,
ShortLived,
LongLived,
}
Expand description
What type of access token is requested? If unsure, ShortLivedAndRefresh is probably what you want.
Variants§
ShortLivedAndRefresh
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.
ShortLived
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.
LongLived
👎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 Freeze for TokenType
impl RefUnwindSafe for TokenType
impl Send for TokenType
impl Sync for TokenType
impl Unpin for TokenType
impl UnwindSafe for TokenType
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
Mutably borrows from an owned value. Read more