pub enum AuthenticationToken {
Admin(String, Option<UserIdentityAttributes>),
User(String),
None,
}Variants§
Admin(String, Option<UserIdentityAttributes>)
Admin key issued by a KeyBroker, potentially acting as a user.
User(String)
OpenID Connect JWT
None
Logged out.
Trait Implementations§
source§impl Clone for AuthenticationToken
impl Clone for AuthenticationToken
source§fn clone(&self) -> AuthenticationToken
fn clone(&self) -> AuthenticationToken
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 AuthenticationToken
impl Debug for AuthenticationToken
source§impl Default for AuthenticationToken
impl Default for AuthenticationToken
source§fn default() -> AuthenticationToken
fn default() -> AuthenticationToken
Returns the “default value” for a type. Read more
source§impl PartialEq for AuthenticationToken
impl PartialEq for AuthenticationToken
source§fn eq(&self, other: &AuthenticationToken) -> bool
fn eq(&self, other: &AuthenticationToken) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for AuthenticationToken
impl StructuralEq for AuthenticationToken
impl StructuralPartialEq for AuthenticationToken
Auto Trait Implementations§
impl RefUnwindSafe for AuthenticationToken
impl Send for AuthenticationToken
impl Sync for AuthenticationToken
impl Unpin for AuthenticationToken
impl UnwindSafe for AuthenticationToken
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.