forked from bottlerocket-os/bottlerocket
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmod.rs
More file actions
23 lines (21 loc) · 767 Bytes
/
Copy pathmod.rs
File metadata and controls
23 lines (21 loc) · 767 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
use model_derive::model;
use serde::{Deserialize, Serialize};
use std::collections::HashMap;
use crate::modeled_types::Identifier;
use crate::{
AwsSettings, ContainerImage, KernelSettings, MetricsSettings, NetworkSettings, NtpSettings,
UpdatesSettings,
};
// Note: we have to use 'rename' here because the top-level Settings structure is the only one
// that uses its name in serialization; internal structures use the field name that points to it
#[model(rename = "settings", impl_default = true)]
struct Settings {
motd: String,
updates: UpdatesSettings,
host_containers: HashMap<Identifier, ContainerImage>,
ntp: NtpSettings,
network: NetworkSettings,
kernel: KernelSettings,
aws: AwsSettings,
metrics: MetricsSettings,
}