Make the TokenData struct public

This commit is contained in:
Mike Engel 2017-07-02 15:49:14 -06:00
commit 5758c0008c
No known key found for this signature in database
GPG key ID: 225C4F0D1FDE7CF8
3 changed files with 5 additions and 1 deletions

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
target
Cargo.lock
.idea/
.vscode

View file

@ -29,13 +29,14 @@ pub use crypto::{
verify,
};
pub use validation::Validation;
pub use serialization::TokenData;
use serde::de::DeserializeOwned;
use serde::ser::Serialize;
use errors::{Result, ErrorKind};
use serialization::{TokenData, from_jwt_part, from_jwt_part_claims, to_jwt_part};
use serialization::{from_jwt_part, from_jwt_part_claims, to_jwt_part};
use validation::{validate};

View file

@ -11,7 +11,9 @@ use header::Header;
/// The return type of a successful call to decode
#[derive(Debug)]
pub struct TokenData<T> {
/// The decoded JWT header
pub header: Header,
/// The decoded JWT claims
pub claims: T
}