diff options
author | Fredrik Meringdal <fmeringdal@hotmail.com> | 2020-11-20 18:18:41 +0100 |
---|---|---|
committer | Fredrik Meringdal <fmeringdal@hotmail.com> | 2020-11-20 18:18:41 +0100 |
commit | c437b568f9dad67b212a9b17d2ac32dd40263571 (patch) | |
tree | 33d49289002e9b22b610e8b1ca05027240669156 /src/options.rs | |
parent | 05e9450ea926833d2bf466dea720192886e97ff5 (diff) | |
download | rust_rrule-c437b568f9dad67b212a9b17d2ac32dd40263571.zip |
serde
Diffstat (limited to 'src/options.rs')
-rw-r--r-- | src/options.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/options.rs b/src/options.rs index 4e6f1cd..0863294 100644 --- a/src/options.rs +++ b/src/options.rs @@ -1,11 +1,12 @@ use crate::datetime::{get_weekday_val, DTime}; use crate::parse_options::parse_options; use chrono::prelude::*; +use serde::{Serialize, Deserialize}; use chrono_tz::{Tz, UTC}; use std::error::Error; use std::fmt::{Display, Formatter}; -#[derive(Debug, PartialEq, PartialOrd, Clone)] +#[derive(Serialize, Deserialize, Debug, PartialEq, PartialOrd, Clone)] pub enum Frequenzy { Yearly = 0, Monthly = 1, |