aboutsummaryrefslogtreecommitdiffstats
path: root/crates/turtle/src/atuin_server_database/calendar.rs
blob: f1c78262fe3c9b13b06962f5dcdd2b051c5a7899 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Calendar data

use serde::{Deserialize, Serialize};
use time::Month;

pub(crate) enum TimePeriod {
    Year,
    Month { year: i32 },
    Day { year: i32, month: Month },
}

#[derive(Debug, Serialize, Deserialize)]
pub(crate) struct TimePeriodInfo {
    pub(crate) count: u64,

    // TODO: Use this for merkle tree magic
    pub(crate) hash: String,
}