atuin_server_database/
calendar.rs

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 enum TimePeriod {
    Year,
    Month { year: i32 },
    Day { year: i32, month: Month },
}

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

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