tesla-charge-controller/server/src/config.rs
2023-12-27 17:34:48 +11:00

17 lines
304 B
Rust

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