#actix-web #derive #utility

yanked actix-jwt-auth-middleware-macros

This crate provides a derive macro for the actix-web::FromRequest trait

0.1.0 Jun 1, 2022

#284 in #actix-web

MIT/Apache

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