pub enum TokenSource {
NotUsed,
Env,
Dotenv,
Unset,
}Expand description
Where a token_env variable resolves, as a word (#517). The value itself is never carried
past Spec::token.
Variants§
NotUsed
The entry asks for no token.
Env
It resolves from the process environment.
Dotenv
It resolves from the .env the config loaded.
Unset
It is named and resolves nowhere: this server cannot authenticate as configured.
Implementations§
Trait Implementations§
Source§impl Clone for TokenSource
impl Clone for TokenSource
impl Copy for TokenSource
Source§impl Debug for TokenSource
impl Debug for TokenSource
impl Eq for TokenSource
Source§impl PartialEq for TokenSource
impl PartialEq for TokenSource
impl StructuralPartialEq for TokenSource
Auto Trait Implementations§
impl Forget for TokenSource
impl Freeze for TokenSource
impl Move for TokenSource
impl RefUnwindSafe for TokenSource
impl Send for TokenSource
impl Sync for TokenSource
impl Unpin for TokenSource
impl UnsafeUnpin for TokenSource
impl UnwindSafe for TokenSource
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.