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
12
13
14
15
16
17
18
use from_attr::FromAttr;
use syn::{LitInt, LitStr};


#[derive(FromAttr)]
#[attribute(idents = [find])]
pub struct ScheduledAttr {
    #[attribute(conflicts = [fixed_rate])]
    pub cron: Option<LitStr>,
    #[attribute(conflicts = [cron])]
    pub fixed_rate: Option<LitInt>,
    pub initial_delay: Option<LitInt>,
    
    pub timezone: Option<LitStr>,
    pub time_unit: Option<LitStr>,

    pub one_shot: bool,
}