Struct salvo_extra::jwt_auth::JwtConfig [−][src]
pub struct JwtConfig<C> where
C: DeserializeOwned + Sync + Send + 'static, { pub secret: String, pub context_token_key: Option<String>, pub context_data_key: Option<String>, pub context_state_key: Option<String>, pub response_error: bool, pub claims: PhantomData<C>, pub validation: Validation, pub extractors: Vec<Box<dyn JwtExtractor>>, }
Fields
secret: String
context_token_key: Option<String>
context_data_key: Option<String>
context_state_key: Option<String>
response_error: bool
claims: PhantomData<C>
validation: Validation
extractors: Vec<Box<dyn JwtExtractor>>
Auto Trait Implementations
impl<C> !RefUnwindSafe for JwtConfig<C>
impl<C> Send for JwtConfig<C>
impl<C> Sync for JwtConfig<C>
impl<C> Unpin for JwtConfig<C> where
C: Unpin,
C: Unpin,
impl<C> !UnwindSafe for JwtConfig<C>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,