1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
/// Stubr server configuration.
#[derive(Default)]
pub struct Config {
    /// HTTP port the mock server will be listening on
    pub port: Option<u16>,
    /// Enables turning off logs
    pub verbose: Option<bool>,
    /// Global delay in milliseconds.
    /// Supersedes any locally defined delay
    pub global_delay: Option<u64>,
    /// Global delay in milliseconds.
    /// Contrary to [global_delay], this one is added to any locally defined delay.
    /// Use it to simulate network delays.
    pub latency: Option<u64>,
}