Enum dropbox_sdk::oauth2::TokenType
source · [−]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
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 TokenType
impl Send for TokenType
impl Sync for TokenType
impl Unpin for TokenType
impl UnwindSafe for TokenType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more