pzzld-server 0.0.2

A production ready server optimized for WASM applications
Documentation
/*
    Appellation: services <module>
    Contrib: @FL03
*/
use super::TracingConfig;

#[derive(
    Clone,
    Debug,
    Default,
    Eq,
    Hash,
    Ord,
    PartialEq,
    PartialOrd,
    serde::Deserialize,
    serde::Serialize,
)]
#[serde(default)]
pub struct ServicesConfig {
    pub tracing: TracingConfig,
}

impl ServicesConfig {
    pub fn new() -> Self {
        Self {
            tracing: TracingConfig::new(crate::config::LogLevel::Info),
        }
    }

    getter! {
        tracing: TracingConfig
    }

    setwith! {
        tracing: TracingConfig
    }
}