tesla-charge-controller/server/src/config.rs

17 lines
304 B
Rust
Raw Normal View History

use std::time::Duration;
2023-12-25 21:22:08 +11:00
use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Clone, Debug)]
pub struct Config {
watch_interval: Duration,
}
2023-12-25 21:22:08 +11:00
impl Default for Config {
fn default() -> Self {
Self {
watch_interval: Duration::from_secs(60),
}
}
}