Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use serde::{Deserialize, Serialize};
use serde_json::{Map, Value};

//
wrapping_macro::wrapping_int! {
    #[derive(Deserialize, Serialize, Debug, Clone, Copy, Default)]
    pub struct ConfigId(pub u64);
}

//
#[derive(Deserialize, Serialize, Debug, Clone)]
pub struct Config {
    pub id: ConfigId,
    pub label: String,
    pub kernel: String,
    #[serde(flatten)]
    pub _extra: Map<String, Value>,
}