Skip to main content

JsonwebtokenTrait

Trait JsonwebtokenTrait 

Source
pub trait JsonwebtokenTrait {
    // Required methods
    fn hs256_decode(&self) -> Result<Token, Error>;
    fn hs384_decode(&self) -> Result<Token, Error>;
    fn hs512_decode(&self) -> Result<Token, Error>;
    fn hs256_encode(&self) -> Result<String, Error>;
    fn hs384_encode(&self) -> Result<String, Error>;
    fn hs512_encode(&self) -> Result<String, Error>;
}

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§