pub enum ReauthReason {
Unauthorized,
StepUp,
Expiring,
}Expand description
Why a request needs new credentials.
Variants§
401: the token is missing, expired or revoked. A refresh may fix it.
StepUp
403 insufficient_scope: more scopes are needed, which takes a new login.
Expiring
The token is about to expire: refresh it if possible, never log in.
Trait Implementations§
Source§impl Clone for ReauthReason
impl Clone for ReauthReason
Source§fn clone(&self) -> ReauthReason
fn clone(&self) -> ReauthReason
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ReauthReason
Source§impl Debug for ReauthReason
impl Debug for ReauthReason
impl Eq for ReauthReason
Source§impl PartialEq for ReauthReason
impl PartialEq for ReauthReason
impl StructuralPartialEq for ReauthReason
Auto Trait Implementations§
impl Freeze for ReauthReason
impl RefUnwindSafe for ReauthReason
impl Send for ReauthReason
impl Sync for ReauthReason
impl Unpin for ReauthReason
impl UnsafeUnpin for ReauthReason
impl UnwindSafe for ReauthReason
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.