Module jaws::claims

source ·
Expand description

Claims for a JWT.

Claims are one kind of loosely specified payload for a JWT. The set of registered claims is defined in RFC 7519, and can be extended with both public and private claims.

RegisteredClaims provides a data model for the set of known registered claims, with optional fields. Since some claims can be any JSON value type, the fields are generic over the type of the contents.

Claims wraps RegisteredClaims with a set of custom claims, which can be any struct which implements serde::Serialize and produces valid JSON.

Structs

  • The claims for the JWS.
  • The signed header values for the JWS which are common to each request.