daemon: Mark default state and config with serde(default)

This commit is contained in:
Vicki Pfau 2024-06-12 17:44:25 -07:00
parent 037d418553
commit 5b8deecd45
2 changed files with 4 additions and 0 deletions

View file

@ -24,6 +24,7 @@ use crate::path;
use crate::sls::ftrace::Ftrace;
#[derive(Copy, Clone, Default, Deserialize, Serialize, Debug)]
#[serde(default)]
pub(crate) struct RootConfig {
pub services: RootServicesConfig,
}
@ -32,6 +33,7 @@ pub(crate) struct RootConfig {
pub(crate) struct RootServicesConfig {}
#[derive(Copy, Clone, Default, Deserialize, Serialize, Debug)]
#[serde(default)]
pub(crate) struct RootState {
pub services: RootServicesState,
}

View file

@ -22,6 +22,7 @@ use crate::path;
use crate::udev::UdevMonitor;
#[derive(Copy, Clone, Default, Deserialize, Serialize, Debug)]
#[serde(default)]
struct UserConfig {
pub services: UserServicesConfig,
}
@ -30,6 +31,7 @@ struct UserConfig {
pub(crate) struct UserServicesConfig {}
#[derive(Copy, Clone, Default, Deserialize, Serialize, Debug)]
#[serde(default)]
struct UserState {
pub services: UserServicesState,
}