diff options
| author | Conrad Ludgate <conradludgate@gmail.com> | 2023-06-12 09:04:35 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-12 09:04:35 +0100 |
| commit | 8655c93853506acf05f6ae4e58bfc2c6198be254 (patch) | |
| tree | 22d20b35636ad2eb717d58c93ae07378adbb76eb /atuin-server-database/src/calendar.rs | |
| parent | Make Ctrl-d behaviour match other tools (#1040) (diff) | |
| download | atuin-8655c93853506acf05f6ae4e58bfc2c6198be254.zip | |
refactor server to allow pluggable db and tracing (#1036)
* refactor server to allow pluggable db and tracing
* clean up
* fix descriptions
* remove dependencies
Diffstat (limited to 'atuin-server-database/src/calendar.rs')
| -rw-r--r-- | atuin-server-database/src/calendar.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/atuin-server-database/src/calendar.rs b/atuin-server-database/src/calendar.rs new file mode 100644 index 00000000..7c05dce3 --- /dev/null +++ b/atuin-server-database/src/calendar.rs @@ -0,0 +1,17 @@ +// Calendar data + +use serde::{Deserialize, Serialize}; + +pub enum TimePeriod { + YEAR, + MONTH, + DAY, +} + +#[derive(Debug, Serialize, Deserialize)] +pub struct TimePeriodInfo { + pub count: u64, + + // TODO: Use this for merkle tree magic + pub hash: String, +} |
