optify 1.3.2

Simplifies getting the right configuration options for a process using pre-loaded configurations from files (JSON, YAML, etc.) to manage options for experiments or flights. This library is mainly made to support building implementations for other languages such as Node.js, Python, and Ruby. It is not meant to be consumed directly yet.
Documentation
use std::time::Duration;

/// Configuration options for the OptionsWatcher.
#[derive(Debug, Clone)]
pub struct WatcherOptions {
    /// The duration to wait before triggering a rebuild after file changes.
    pub debounce_duration: Duration,
}

impl Default for WatcherOptions {
    fn default() -> Self {
        Self {
            debounce_duration: Duration::from_secs(1),
        }
    }
}

impl WatcherOptions {
    pub fn new(debounce_duration: Duration) -> Self {
        Self { debounce_duration }
    }
}