Decoder

Type Alias Decoder 

Source
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 */ }