actix-jwt-auth-middleware-macros

Crates.ioactix-jwt-auth-middleware-macros
lib.rsactix-jwt-auth-middleware-macros
version0.1.0
sourcesrc
created_at2022-06-01 19:28:23.234707
updated_at2022-06-01 19:28:23.234707
descriptionThis crate provides a derive macro for the actix-web::FromRequest trait
homepage
repository
max_upload_size
id598376
size3,878
Michael (michaelvanstraten)

documentation

https://docs.rs/actix-jwt-auth-middleware-macros/

README

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,
}
Commit count: 0

cargo fmt