You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
distant/src/options/config/server/watch.rs

25 lines
622 B
Rust

use serde::{Deserialize, Serialize};
use crate::options::common::Seconds;
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct ServerWatchConfig {
pub native: bool,
pub poll_interval: Option<Seconds>,
pub compare_contents: bool,
pub debounce_timeout: Option<Seconds>,
pub debounce_tick_rate: Option<Seconds>,
}
impl Default for ServerWatchConfig {
fn default() -> Self {
Self {
native: true,
poll_interval: None,
compare_contents: false,
debounce_timeout: None,
debounce_tick_rate: None,
}
}
}