jobber 1.1.6-alpha

Minimalistic console work time tracker
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
pub(crate) struct Worker {
    pub(crate) full_name: String,
    pub(crate) deleted: bool,
}

impl Worker {
    #[cfg(test)]
    pub(crate) fn new(full_name: String) -> Self {
        Self {
            full_name: full_name.to_string(),
            deleted: false,
        }
    }
}