[][src]Struct ironoxide::user::Jwt

pub struct Jwt { /* fields omitted */ }

IronCore JWT.

Must be either ES256 or RS256 and have a payload similar to JwtClaims, but could be generated from an external source.

Implementations

impl Jwt[src]

pub fn new(jwt: &str) -> Result<Jwt, IronOxideErr>[src]

Constructs a new Jwt.

Verifies that the provided jwt uses a compatible algorithm and contains the required claims.

pub fn jwt(&self) -> &str[src]

Raw JWT

pub fn claims(&self) -> &JwtClaims[src]

JWT claims

pub fn header(&self) -> &Header[src]

JWT header

Trait Implementations

impl Clone for Jwt[src]

impl Debug for Jwt[src]

impl<'de> Deserialize<'de> for Jwt[src]

impl Display for Jwt[src]

impl Hash for Jwt[src]

impl PartialEq<Jwt> for Jwt[src]

impl Serialize for Jwt[src]

impl StructuralPartialEq for Jwt[src]

impl TryFrom<&'_ str> for Jwt[src]

type Error = IronOxideErr

The type returned in the event of a conversion error.

impl TryFrom<String> for Jwt[src]

type Error = IronOxideErr

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,