axum_jwt_auth

Type Alias Decoder

Source
pub type Decoder<T> = Arc<dyn JwtDecoder<T> + Send + Sync>;
Expand description

A type alias for a decoder that can be used as a state in an Axum application.

Aliased Type§

struct Decoder<T> { /* private fields */ }

Trait Implementations§

Source§

impl<T> FromRef<JwtDecoderState<T>> for Decoder<T>

Source§

fn from_ref(state: &JwtDecoderState<T>) -> Self

Converts to this type from a reference to the input type.