0.1.0 |
|
---|
#284 in #actix-web
4KB
actix-jwt-auth-middleware-macros
This crate provides a derive macro for the actix_web::FromRequest
trait
Example
use actix-jwt-auth-middleware-macros::FromRequest;
#[derive(Clone, FromRequest)]
struct UserClaims {
id: u32,
role: Role,
}
lib.rs
:
actix-jwt-auth-middleware-macros
This crate provides a derive macro for the actix_web::FromRequest
trait
Example
use actix-jwt-auth-middleware-macros::FromRequest;
#[derive(Clone, FromRequest)]
struct UserClaims {
id: u32,
role: Role,
}
Dependencies
~1.5MB
~35K SLoC