jwt::token::verified

Trait VerifyWithKey

Source
pub trait VerifyWithKey<T> {
    // Required method
    fn verify_with_key(self, key: &impl VerifyingAlgorithm) -> Result<T, Error>;
}
Expand description

Allow objects to be verified with a key.

Required Methods§

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> VerifyWithKey<C> for &'a str

Source§

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

Implementors§

Source§

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