tempomat 0.3.0

Minimal Tempo+Jira time logging CLI
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::config::Saveable;
use chrono::NaiveDateTime;
use serde::{Deserialize, Serialize};
use std::collections::HashMap;

#[derive(Serialize, Deserialize, Default)]
pub struct TempoTimers(pub HashMap<String, NaiveDateTime>);

impl Saveable for TempoTimers {
    fn path(root: &std::path::Path) -> std::path::PathBuf {
        root.join("timers.ron")
    }
}