use std::time::Duration; use serde::{Deserialize, Serialize}; use crate::Coords; #[derive(Serialize, Deserialize, Clone, Debug)] pub struct Config { pub watch_interval: Duration, pub coords: Coords, } impl Default for Config { fn default() -> Self { Self { watch_interval: Duration::from_secs(60), coords: Coords { latitude: 0., longitude: 0., }, } } }