Struct jwt::header::Header
[−]
[src]
pub struct Header { pub typ: HeaderType, pub alg: Option<Algorithm>, }
Fields
typ: HeaderType
alg: Option<Algorithm>
Methods
impl Header
[src]
fn parse(raw: &str) -> Result<Header, Error>
Parse a header from a string.
fn encode(&self) -> Result<String, Error>
Encode a header to a string.
Trait Implementations
impl Encodable for Header
[src]
impl Decodable for Header
[src]
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 !=
.