Struct jsonwebtoken::Header
[−]
[src]
pub struct Header { pub alg: Algorithm, pub cty: Option<String>, pub jku: Option<String>, pub kid: Option<String>, pub x5u: Option<String>, pub x5t: Option<String>, // some fields omitted }
A basic JWT header, the alg defaults to HS256 and typ is automatically
set to JWT
. All the other fields are optional.
Fields
alg: Algorithm
The algorithm used
Defined in RFC7515#4.1.1.
cty: Option<String>
Content type
Defined in RFC7519#5.2.
jku: Option<String>
JSON Key URL
Defined in RFC7515#4.1.2.
kid: Option<String>
Key ID
Defined in RFC7515#4.1.4.
x5u: Option<String>
X.509 URL
Defined in RFC7515#4.1.5.
x5t: Option<String>
X.509 certificate thumbprint
Defined in RFC7515#4.1.7.
Methods
impl Header
[src]
Trait Implementations
impl Debug for Header
[src]
impl Clone for Header
[src]
fn clone(&self) -> Header
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
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 !=
.