Enum graph_core::identity::ForceTokenRefresh
source · pub enum ForceTokenRefresh {
Never,
Once,
Always,
}
Variants§
Never
Always use the token cache first to when returning tokens. Expired tokens will still cause an authorization request to be called.
Once
ForceRefreshToken::Once will cause only the next authorization request to ignore any tokens in cache and request a new token. Authorization requests after this are treated as ForceRefreshToken::Never
Always
Always make an authorization request regardless of any tokens in cache.
Trait Implementations§
source§impl Clone for ForceTokenRefresh
impl Clone for ForceTokenRefresh
source§fn clone(&self) -> ForceTokenRefresh
fn clone(&self) -> ForceTokenRefresh
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ForceTokenRefresh
impl Debug for ForceTokenRefresh
source§impl Default for ForceTokenRefresh
impl Default for ForceTokenRefresh
source§fn default() -> ForceTokenRefresh
fn default() -> ForceTokenRefresh
Returns the “default value” for a type. Read more
source§impl Hash for ForceTokenRefresh
impl Hash for ForceTokenRefresh
source§impl Ord for ForceTokenRefresh
impl Ord for ForceTokenRefresh
source§fn cmp(&self, other: &ForceTokenRefresh) -> Ordering
fn cmp(&self, other: &ForceTokenRefresh) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ForceTokenRefresh
impl PartialEq for ForceTokenRefresh
source§fn eq(&self, other: &ForceTokenRefresh) -> bool
fn eq(&self, other: &ForceTokenRefresh) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ForceTokenRefresh
impl PartialOrd for ForceTokenRefresh
source§fn partial_cmp(&self, other: &ForceTokenRefresh) -> Option<Ordering>
fn partial_cmp(&self, other: &ForceTokenRefresh) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for ForceTokenRefresh
impl StructuralPartialEq for ForceTokenRefresh
Auto Trait Implementations§
impl Freeze for ForceTokenRefresh
impl RefUnwindSafe for ForceTokenRefresh
impl Send for ForceTokenRefresh
impl Sync for ForceTokenRefresh
impl Unpin for ForceTokenRefresh
impl UnwindSafe for ForceTokenRefresh
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.