apimock-config 5.1.1

Configuration model for apimock: loading, validation, editing, saving.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use serde::Deserialize;

pub mod verbose_config;

use verbose_config::VerboseConfig;

/// log
#[derive(Clone, Default, Deserialize)]
pub struct LogConfig {
    pub verbose: VerboseConfig,
}

impl std::fmt::Display for LogConfig {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let _ = write!(f, "{}", self.verbose);
        Ok(())
    }
}