jwt::token::verified

Trait VerifyWithStore

Source
pub trait VerifyWithStore<T> {
    // Required method
    fn verify_with_store<S, A>(self, store: &S) -> Result<T, Error>
       where S: Store<Algorithm = A>,
             A: VerifyingAlgorithm;
}
Expand description

Allow objects to be verified with a store.

Required Methods§

Source

fn verify_with_store<S, A>(self, store: &S) -> Result<T, Error>
where S: Store<Algorithm = A>, A: VerifyingAlgorithm,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<'a, C: FromBase64> VerifyWithStore<C> for &'a str

Source§

fn verify_with_store<S, A>(self, store: &S) -> Result<C, Error>
where S: Store<Algorithm = A>, A: VerifyingAlgorithm,

Source§

impl<'a, H, C> VerifyWithStore<Token<H, C, Verified>> for &'a str

Source§

fn verify_with_store<S, A>( self, store: &S, ) -> Result<Token<H, C, Verified>, Error>
where S: Store<Algorithm = A>, A: VerifyingAlgorithm,

Implementors§

Source§

impl<'a, H: JoseHeader, C> VerifyWithStore<Token<H, C, Verified>> for Token<H, C, Unverified<'a>>