aboutsummaryrefslogtreecommitdiff
path: root/src/csl.rs
diff options
context:
space:
mode:
authorDaniel <kingdread@gmx.de>2019-05-18 01:37:50 +0200
committerDaniel <kingdread@gmx.de>2019-05-18 01:37:50 +0200
commit54e29430b3a668e9e98d3fc6e1a107fd36af8af4 (patch)
treed7143e4012ceb9cc8a84fc4013b2012ee4734348 /src/csl.rs
parente132410e7a526239389d3e8dedbcf5a84f0503b5 (diff)
downloadraidgrep-54e29430b3a668e9e98d3fc6e1a107fd36af8af4.tar.gz
raidgrep-54e29430b3a668e9e98d3fc6e1a107fd36af8af4.tar.bz2
raidgrep-54e29430b3a668e9e98d3fc6e1a107fd36af8af4.zip
add support for weekday filtering
Diffstat (limited to 'src/csl.rs')
-rw-r--r--src/csl.rs2
1 files changed, 2 insertions, 0 deletions
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<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 = ',';