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 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.

impl Part for Header
[src]

type Encoded = &'static str

fn from_base64<B: AsRef<[u8]>>(encoded: B) -> Result<Self, Error> where Self: Sized

fn to_base64(&self) -> Result<Self::Encoded, Error>