pub struct AuthState {
pub key_store: Arc<ApiKeyStore>,
pub jwt: Option<JwtConfig>,
}Expand description
Authentication state shared by middleware.
Fields§
§key_store: Arc<ApiKeyStore>In-memory API key store.
jwt: Option<JwtConfig>Optional JWT validation settings.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AuthState
impl !RefUnwindSafe for AuthState
impl Send for AuthState
impl Sync for AuthState
impl Unpin for AuthState
impl UnsafeUnpin for AuthState
impl !UnwindSafe for AuthState
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