aboutsummaryrefslogtreecommitdiff
path: root/base/src/context.rs
blob: 79f0a6a68f278ce72c240f0d6bc2ccb4443c1b5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
use chrono::naive::date::NaiveDate;
use chrono::offset::fixed::FixedOffset;

pub struct Context {
    pub timezone_in: FixedOffset,
    pub timezone_out: FixedOffset,
    pub override_date: Option<NaiveDate>,
    pub channel: Option<String>,
}

impl Default for Context {
    fn default() -> Context {
        Context {
            timezone_in: FixedOffset::west(0),
            timezone_out: FixedOffset::west(0),
            override_date: None,
            channel: None,
        }
    }
}