revoke-auth 0.5.0

High-performance microservices infrastructure framework built with pure Rust
Documentation
1
2
3
4
5
6
use serde::de::DeserializeOwned;

/// 用户应实现此 Trait,让验证系统知道如何解析 JWT Payload
pub trait JwtClaims: DeserializeOwned + Send + Sync + 'static {
    fn sub(&self) -> &str;
}