aboutsummaryrefslogtreecommitdiff
path: root/base/src/context.rs
blob: fe264abed51008238760668daec0de22010e6e8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

use chrono::naive::date::NaiveDate;
use chrono::offset::fixed::FixedOffset;

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

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