[][src]Struct coreutils_jwt::JwtService

pub struct JwtService { /* fields omitted */ }

Methods

impl JwtService[src]

pub fn new(jwt_config: &JwtConfig) -> JwtService[src]

pub fn generate_from_payload<T: Serialize>(
    &self,
    payload: &T
) -> Result<String, JwtError>
[src]

pub fn generate_from_token<T: Serialize>(
    &self,
    token: &Token<T>
) -> Result<String, JwtError>
[src]

pub fn parse_payload<T: DeserializeOwned>(
    &self,
    jwt_string: &str
) -> Result<T, JwtError>
[src]

pub fn parse_token<T: DeserializeOwned>(
    &self,
    jwt_string: &str
) -> Result<Token<T>, JwtError>
[src]

Trait Implementations

impl Clone for JwtService[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for JwtService

impl Sync for JwtService

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> From<T> for T[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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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