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