pub type Decoder<T> = Arc<dyn JwtDecoder<T> + Send + Sync>;Expand description
Type alias for a thread-safe, trait-object decoder suitable for Axum state.
Use this with Arc::new(decoder) to share a decoder across request handlers.
Aliased Type§
pub struct Decoder<T> { /* private fields */ }Trait Implementations§
Source§impl<T> FromRef<JwtDecoderState<T>> for Decoder<T>
impl<T> FromRef<JwtDecoderState<T>> for Decoder<T>
Source§fn from_ref(state: &JwtDecoderState<T>) -> Self
fn from_ref(state: &JwtDecoderState<T>) -> Self
Converts to this type from a reference to the input type.