Struct jwt_authorizer::JwtClaims
source · pub struct JwtClaims<T>(pub T);Expand description
Claims serialized using T
Tuple Fields§
§0: TTrait Implementations§
source§impl<T, S> FromRequestParts<S> for JwtClaims<T>where
T: DeserializeOwned + Send + Sync + Clone + 'static,
S: Send + Sync,
impl<T, S> FromRequestParts<S> for JwtClaims<T>where T: DeserializeOwned + Send + Sync + Clone + 'static, S: Send + Sync,
§type Rejection = StatusCode
type Rejection = StatusCode
If the extractor fails it’ll use this “rejection” type. A rejection is
a kind of error that can be converted into a response.