Struct jsonwebtoken::Header [] [src]

pub struct Header {
    pub alg: Algorithm,
    pub jku: Option<String>,
    pub kid: Option<String>,
    pub x5u: Option<String>,
    pub x5t: Option<String>,
    // some fields omitted
}

A basic JWT header part, the alg defaults to HS256 and typ is automatically set to JWT. All the other fields are optional

Fields

Methods

impl Header
[src]

Trait Implementations

impl Debug for Header
[src]

Formats the value using the given formatter.

impl PartialEq for Header
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Decodable for Header
[src]

Deserialize a value using a Decoder.

impl Default for Header
[src]

Returns the "default value" for a type. Read more

impl Encodable for Header
[src]

Serialize a value using an Encoder.

impl ToJson for Header
[src]

Converts the value of self to an instance of JSON