Struct jsonwebtoken::Header [] [src]

pub struct Header {
    // some fields omitted
}

A basic JWT header part, the alg is automatically filled for use It's missing things like the kid but that's for later

Methods

impl Header
[src]

fn new(algorithm: Algorithm) -> Header

Trait Implementations

impl Decodable for Header
[src]

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<Header, __D::Error>

impl Encodable for Header
[src]

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>

impl PartialEq for Header
[src]

fn eq(&self, __arg_0: &Header) -> bool

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

fn ne(&self, __arg_0: &Header) -> bool

This method tests for !=.

impl Debug for Header
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.