2
0
Fork 0
mirror of https://git.asonix.dog/asonix/pict-rs synced 2024-11-20 11:21:14 +00:00

Fix specs

This commit is contained in:
asonix 2023-07-22 17:58:03 -05:00
parent b786406ad0
commit 13387dec43

View file

@ -15,6 +15,7 @@ pub(crate) struct ConfigFile {
pub(crate) tracing: Tracing,
#[serde(default)]
pub(crate) metrics: Metrics,
pub(crate) old_db: OldDb,
@ -121,7 +122,7 @@ pub(crate) struct Tracing {
pub(crate) opentelemetry: OpenTelemetry,
}
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(Clone, Debug, Default, serde::Deserialize, serde::Serialize)]
#[serde(rename_all = "snake_case")]
pub(crate) struct Metrics {
#[serde(skip_serializing_if = "Option::is_none")]