Struct libjwt::Header [] [src]

pub struct Header<'h>(_);

Jwt's header

Methods

impl<'h> Header<'h>
[src]

[src]

Create a Jwt's header from any type who can be turned into a Cow<'h, str>

[src]

Convert a base64 transformable into a header.

[src]

In JWT's header you can have the field "alg" who provide which algorithm is used to sign your token. We get this field and convert it into an algorithm.

Trait Implementations

impl<'h> Debug for Header<'h>
[src]

[src]

Formats the value using the given formatter. Read more

impl<'h> Clone for Header<'h>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'h> FromBase64 for Header<'h>
[src]

[src]

Convert it!

impl<'h> Display for Header<'h>
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<'h> Send for Header<'h>

impl<'h> Sync for Header<'h>