#[non_exhaustive]pub enum TokenMode {
SendIfRequired,
SendAlways,
AppService,
}Available on crate feature
client-api only.Expand description
How the client should handle access tokens when making requests.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
SendIfRequired
Send access token only when the endpoint requires it.
SendAlways
Always send access token to all endpoints.
AppService
Use application service token handling.
Trait Implementations§
impl Copy for TokenMode
impl Eq for TokenMode
impl StructuralPartialEq for TokenMode
Auto Trait Implementations§
impl Freeze for TokenMode
impl RefUnwindSafe for TokenMode
impl Send for TokenMode
impl Sync for TokenMode
impl Unpin for TokenMode
impl UnsafeUnpin for TokenMode
impl UnwindSafe for TokenMode
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,
Source§impl<T> DropFlavorWrapper<T> for T
impl<T> DropFlavorWrapper<T> for T
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.