diff options
author | notgne2 | 2020-10-05 20:10:41 -0700 |
---|---|---|
committer | notgne2 | 2020-10-05 20:11:31 -0700 |
commit | aabcf6b77d4159100a49b143cbb8da4bad194f14 (patch) | |
tree | b44ba5b13aeefa6242386b58fd322f30a75f7193 /src/utils | |
parent | 1de1ad5ff893bfcabdf2bfa20d8c93a8cdbb0156 (diff) |
Improve schema a bit, fix flake locks for examples
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/data.rs | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/utils/data.rs b/src/utils/data.rs index de6adfc..371c82d 100644 --- a/src/utils/data.rs +++ b/src/utils/data.rs @@ -29,6 +29,13 @@ pub struct GenericSettings { #[derive(Deserialize, Debug, Clone)] pub struct NodeSettings { pub hostname: String, + pub profiles: HashMap<String, Profile>, + #[serde( + skip_serializing_if = "Vec::is_empty", + default, + rename(deserialize = "profilesOrder") + )] + pub profiles_order: Vec<String>, } #[derive(Deserialize, Debug, Clone)] @@ -51,14 +58,6 @@ pub struct Node { pub generic_settings: GenericSettings, #[serde(flatten)] pub node_settings: NodeSettings, - - pub profiles: HashMap<String, Profile>, - #[serde( - skip_serializing_if = "Vec::is_empty", - default, - rename(deserialize = "profilesOrder") - )] - pub profiles_order: Vec<String>, } #[derive(Deserialize, Debug, Clone)] |