rtimelogger 0.8.0

A simple cross-platform CLI tool to track working hours, lunch breaks, and calculate surplus time
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use chrono::{DateTime, Local};
use serde::Serialize;

use super::{event_type::EventType, location::Location};

#[derive(Debug, Clone, Serialize)]
pub struct Event {
    pub id: i32,
    pub timestamp: DateTime<Local>,
    pub kind: EventType,
    pub location: Location,
    pub lunch: Option<i32>,
    pub work_gap: bool,
}