Trait Claim

Source
pub trait Claim: DeserializeOwned {
    // Provided method
    fn validate(&self) -> Result<(), Error> { ... }
}
Expand description

Represents a claim that can be validated after decoding the token You can override validate if you want to check required fields or expiry etc.

Provided Methods§

Source

fn validate(&self) -> Result<(), Error>

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.

Implementors§