mirror of https://github.com/chipsenkbeil/distant
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.
25 lines
622 B
Rust
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,
|
|
}
|
|
}
|
|
}
|