From 2442a6f2c0e2c0ba2fa89bd48bf0a21a324cd068 Mon Sep 17 00:00:00 2001 From: Thomas Gideon Date: Fri, 17 Feb 2017 11:30:19 -0500 Subject: [PATCH] Correct required traits, attributes --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 68db704..dc49eac 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,6 @@ A JWT library for rust using serde, serde_json and openssl. ## 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`, -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. +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. This library was originally forked from @mikkyang's rust-jwt.