Crates.io | actix-jwt-auth-middleware-macros |
lib.rs | actix-jwt-auth-middleware-macros |
version | 0.1.0 |
source | src |
created_at | 2022-06-01 19:28:23.234707 |
updated_at | 2022-06-01 19:28:23.234707 |
description | This crate provides a derive macro for the actix-web::FromRequest trait |
homepage | |
repository | |
max_upload_size | |
id | 598376 |
size | 3,878 |
This crate provides a derive macro for the actix_web::FromRequest
trait
use actix-jwt-auth-middleware-macros::FromRequest;
#[derive(Clone, FromRequest)]
struct UserClaims {
id: u32,
role: Role,
}