pub struct StaticTokenAuth { /* private fields */ }Expand description
Authenticates by installing a pre-obtained JWT token directly.
Useful when a token has been acquired externally (e.g. from a vault or
a previous session) and does not require a login round-trip. The token
is stored in a zeroize::Zeroizing wrapper so it is zeroed on drop.
Implementations§
Trait Implementations§
Source§impl AuthProvider for StaticTokenAuth
impl AuthProvider for StaticTokenAuth
Source§impl Clone for StaticTokenAuth
impl Clone for StaticTokenAuth
Source§fn clone(&self) -> StaticTokenAuth
fn clone(&self) -> StaticTokenAuth
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for StaticTokenAuth
impl RefUnwindSafe for StaticTokenAuth
impl Send for StaticTokenAuth
impl Sync for StaticTokenAuth
impl Unpin for StaticTokenAuth
impl UnsafeUnpin for StaticTokenAuth
impl UnwindSafe for StaticTokenAuth
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