Docs.rs
actix-grants-proc-macro-2.0.2
actix-grants-proc-macro 2.0.2
Permalink
Docs.rs crate page
MIT
OR
Apache-2.0
Links
Homepage
Repository
crates.io
Source
Owners
DDtKey
Dependencies
proc-macro2 ^1.0
normal
quote ^1
normal
syn ^1.0
normal
actix-web ^4.3
dev
Versions
80%
of the crate is documented
Platform
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Crate actix_grants_proc_macro
actix_
grants_
proc_
macro
2.0.2
All Items
Crate Items
Attribute Macros
Crate
actix_
grants_
proc_
macro
Copy item path
Source
Attribute Macros
§
has_
any_
permission
Macro to сheck that the user has any of the specified permissions.
has_
any_
role
Macro to сheck that the user has any the specified roles. Role - is permission with prefix “ROLE_”.
has_
permissions
Macro to сheck that the user has all the specified permissions. Allow to add a conditional restriction based on handlers parameters. Add the
secure
attribute followed by the the boolean expression to validate based on parameters
has_
roles
Macro to сheck that the user has all the specified roles. Role - is permission with prefix “ROLE_”.