diff options
author | Fredrik Meringdal <fmeringdal@hotmail.com> | 2020-10-26 20:21:57 +0100 |
---|---|---|
committer | Fredrik Meringdal <fmeringdal@hotmail.com> | 2020-10-26 20:21:57 +0100 |
commit | 5394f1c753b2752fc9d6409088f0658c797286d6 (patch) | |
tree | edef5c6a8700b8afd579fe31163614f1ec948395 /src/options.rs | |
parent | 0bbc006982cb88d53147bfaec9e1f466caaf5043 (diff) | |
download | rust_rrule-5394f1c753b2752fc9d6409088f0658c797286d6.zip |
timezones
Diffstat (limited to 'src/options.rs')
-rw-r--r-- | src/options.rs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/options.rs b/src/options.rs index 5599454..e21ed51 100644 --- a/src/options.rs +++ b/src/options.rs @@ -1,5 +1,6 @@ use chrono::prelude::*; use chrono_tz::Tz; +use crate::datetime::DTime; #[derive(Debug, PartialEq, PartialOrd, Clone)] pub enum Frequenzy { @@ -17,9 +18,9 @@ pub struct ParsedOptions { pub freq: Frequenzy, pub interval: usize, pub count: Option<u32>, - pub until: Option<DateTime<Utc>>, + pub until: Option<DTime>, pub tzid: Tz, - pub dtstart: DateTime<Utc>, + pub dtstart: DTime, pub wkst: usize, pub bysetpos: Vec<isize>, pub bymonth: Vec<usize>, @@ -41,9 +42,9 @@ pub struct PartialOptions { pub freq: Option<Frequenzy>, pub interval: Option<usize>, pub count: Option<u32>, - pub until: Option<DateTime<Utc>>, - pub tzid: Option<String>, - pub dtstart: Option<DateTime<Utc>>, + pub until: Option<DTime>, + pub tzid: Option<Tz>, + pub dtstart: Option<DTime>, pub wkst: Option<usize>, pub bysetpos: Option<Vec<isize>>, pub bymonth: Option<Vec<usize>>, |