mirror of
https://gitlab.steamos.cloud/holo/steamos-manager.git
synced 2025-07-09 16:10:34 -04:00
daemon: Mark default state and config with serde(default)
This commit is contained in:
parent
037d418553
commit
5b8deecd45
2 changed files with 4 additions and 0 deletions
|
@ -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,
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue