pub struct AuthenticationRequest {
pub token: String,
pub token_kind: TokenKind,
}Expand description
A request to authenticate a token.
§Examples
use secure_identity::authenticator::{AuthenticationRequest, TokenKind};
let request = AuthenticationRequest {
token: "my-token".to_string(),
token_kind: TokenKind::BearerJwt,
};Fields§
§token: StringThe raw token string.
token_kind: TokenKindThe kind of token being presented.
Auto Trait Implementations§
impl Freeze for AuthenticationRequest
impl RefUnwindSafe for AuthenticationRequest
impl Send for AuthenticationRequest
impl Sync for AuthenticationRequest
impl Unpin for AuthenticationRequest
impl UnsafeUnpin for AuthenticationRequest
impl UnwindSafe for AuthenticationRequest
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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