f4240aa62b
This can be used in the future for sync so that we can be more intelligent with what we're doing, and only sync up what's needed I'd like to eventually replace this with something more like a merkle tree, hence the hash field I've exposed, but that can come later Although this does include a much larger number of count queries, it should also be significantly more cache-able. I'll follow up with that later, and also follow up with using this for sync :)
15 lines
231 B
Rust
15 lines
231 B
Rust
// Calendar data
|
|
|
|
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,
|
|
}
|