doki_core/config/version/
mod.rs

1use super::*;
2
3#[derive(Serialize, Deserialize, Debug, PartialEq)]
4pub struct DokiVersionControl {
5    enable: bool,
6}
7
8impl Default for DokiVersionControl {
9    fn default() -> Self {
10        Self { enable: false }
11    }
12}
13
14impl DokiConfig {
15    pub fn version_enable(&self) -> bool {
16        match &self.version {
17            None => false,
18            Some(s) => s.enable,
19        }
20    }
21}