diff options
Diffstat (limited to 'src/csl.rs')
-rw-r--r-- | src/csl.rs | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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<Item=Self>; @@ -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 = ','; |