Struct jwt::claims::Claims
[−]
[src]
pub struct Claims { pub reg: Registered, pub private: BTreeMap<String, Json>, }
Fields
reg: Registered
private: BTreeMap<String, Json>
Methods
impl Claims
[src]
JWT Claims. Registered claims are directly accessible via the Registered
struct embedded, while private fields are a map that contains Json
values.
fn new(reg: Registered) -> Claims
fn parse(raw: &str) -> Result<Claims, Error>
Parse claims from a string.
fn encode(&self) -> Result<String, Error>
Encode claims to a string.
Trait Implementations
impl PartialEq for Claims
[src]
fn eq(&self, __arg_0: &Claims) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Claims) -> bool
This method tests for !=
.