use chrono::prelude::*; #[derive(Debug)] pub struct YearInfo { pub yearlen: usize, pub nextyearlen: usize, pub yearordinal: isize, pub yearweekday: usize, pub mmask: Vec, pub mrange: Vec, pub mdaymask: Vec, pub nmdaymask: Vec, pub wdaymask: Vec, pub wnomask: Option>, } #[derive(Debug, PartialEq, PartialOrd, Clone)] pub enum Frequenzy { Yearly = 0, Monthly = 1, Weekly = 2, Daily = 3, Hourly = 4, Minutely = 5, Secondly = 6, } #[derive(Debug, Clone)] pub struct ParsedOptions { pub freq: Frequenzy, pub interval: usize, pub count: Option, pub until: Option>, pub tzid: Option, pub dtstart: DateTime, pub wkst: usize, pub bysetpos: Vec, pub bymonth: Vec, pub bymonthday: Vec, pub bynmonthday: Vec, pub byyearday: Vec, pub byweekno: Vec, pub byweekday: Vec, pub byhour: Vec, pub byminute: Vec, pub bysecond: Vec, pub bynweekday: Vec>, pub byeaster: Option, }