From 54e29430b3a668e9e98d3fc6e1a107fd36af8af4 Mon Sep 17 00:00:00 2001 From: Daniel Date: Sat, 18 May 2019 01:37:50 +0200 Subject: add support for weekday filtering --- src/csl.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/csl.rs') diff --git a/src/csl.rs b/src/csl.rs index 83f2e14..fb11841 100644 --- a/src/csl.rs +++ b/src/csl.rs @@ -4,6 +4,7 @@ use std::str::FromStr; use std::fmt; use super::{SearchField, FightOutcome}; +use chrono::Weekday; pub trait Variants: Copy { type Output: Iterator; @@ -33,6 +34,7 @@ macro_rules! variants { variants! { SearchField => Account, Character } variants! { FightOutcome => Success, Wipe } +variants! { Weekday => Mon, Tue, Wed, Thu, Fri, Sat, Sun } /// The character that delimits items from each other. const DELIMITER: char = ','; -- cgit v1.2.3