next-web-macros 0.2.0

Provide a series of commonly used macros
Documentation
1
2
3
4
5
6
7
8
9
10
11
use from_attr::FromAttr;
use syn::{LitInt, LitStr};

#[derive(FromAttr)]
#[attribute(idents = [_none])]
pub(crate) struct IdempotencyAttr {
    pub name: Option<LitStr>,
    pub key: Option<LitStr>,
    pub cache_key_prefix: Option<LitStr>,
    pub ttl: Option<LitInt>,
}