pub struct JwtAuthenticator {
pub token: String,
}Expand description
JwtAuthenticator uses a JWT token to authenticate with the server.
Stability: Uncommitted
This API may change in the future.
Fields§
§token: StringImplementations§
Source§impl JwtAuthenticator
impl JwtAuthenticator
pub fn get_token(&self) -> &str
pub fn get_auth_mechanisms(&self) -> Vec<AuthMechanism>
Trait Implementations§
Source§impl Clone for JwtAuthenticator
impl Clone for JwtAuthenticator
Source§fn clone(&self) -> JwtAuthenticator
fn clone(&self) -> JwtAuthenticator
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 moreSource§impl From<JwtAuthenticator> for Authenticator
impl From<JwtAuthenticator> for Authenticator
Source§fn from(value: JwtAuthenticator) -> Self
fn from(value: JwtAuthenticator) -> Self
Converts to this type from the input type.
Source§impl Hash for JwtAuthenticator
impl Hash for JwtAuthenticator
Source§impl PartialEq for JwtAuthenticator
impl PartialEq for JwtAuthenticator
impl StructuralPartialEq for JwtAuthenticator
Auto Trait Implementations§
impl Freeze for JwtAuthenticator
impl RefUnwindSafe for JwtAuthenticator
impl Send for JwtAuthenticator
impl Sync for JwtAuthenticator
impl Unpin for JwtAuthenticator
impl UnsafeUnpin for JwtAuthenticator
impl UnwindSafe for JwtAuthenticator
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