pub enum TokenOrigin {
Env,
Cache,
}Expand description
Where the effective bearer token came from.
Variants§
Env
Supplied via the DSP_TOKEN environment variable.
Cache
Read from the on-disk auth cache (auth.toml).
Trait Implementations§
Source§impl Clone for TokenOrigin
impl Clone for TokenOrigin
Source§fn clone(&self) -> TokenOrigin
fn clone(&self) -> TokenOrigin
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 TokenOrigin
Source§impl Debug for TokenOrigin
impl Debug for TokenOrigin
impl Eq for TokenOrigin
Source§impl PartialEq for TokenOrigin
impl PartialEq for TokenOrigin
impl StructuralPartialEq for TokenOrigin
Auto Trait Implementations§
impl Freeze for TokenOrigin
impl RefUnwindSafe for TokenOrigin
impl Send for TokenOrigin
impl Sync for TokenOrigin
impl Unpin for TokenOrigin
impl UnsafeUnpin for TokenOrigin
impl UnwindSafe for TokenOrigin
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<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.