pub trait Validator:
Send
+ Sync
+ 'static {
// Required method
fn validate(
&self,
claims: &TokenClaims,
path: &str,
action: Action,
) -> Result<(), AuthError>;
}Expand description
Decides whether claims are allowed to perform action on path.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".