17 lines
304 B
Rust
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),
|
|
}
|
|
}
|
|
}
|