Correct required traits, attributes
This commit is contained in:
parent
db05e08580
commit
2442a6f2c0
1 changed files with 1 additions and 2 deletions
|
@ -11,7 +11,6 @@ A JWT library for rust using serde, serde_json and openssl.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
The library provides a `Token` type that wraps a header and claims. The claims can be any type that implements the `Component` trait, which is automatically implemented for types that implement the `Sized`, `Encodable`,
|
The library provides a `Token` type that wraps a header and claims. The claims can be any type that implements the `Component` trait, which is automatically implemented for types that implement the `Sized`, and must have the attribute `#[derive(Serialize, Deserialize)`. Header can be any type that implements `Component` and `Header`. `Header` ensures that the required algorithm is available for signing and verification. `HS256`, `HS384`, `HS512`, `RS256`, `RS384`, and `RS512` are supported. See the examples.
|
||||||
and `Decodable` traits. Header can be any type that implements `Component` and `Header`. `Header` ensures that the required algorithm is available for signing and verification. `HS256`, `HS384`, `HS512`, `RS256`, `RS384`, and `RS512` are supported. See the examples.
|
|
||||||
|
|
||||||
This library was originally forked from @mikkyang's rust-jwt.
|
This library was originally forked from @mikkyang's rust-jwt.
|
||||||
|
|
Loading…
Reference in a new issue