add dls::Config
This commit is contained in:
10
src/dls.rs
10
src/dls.rs
@ -159,6 +159,16 @@ impl<'t> Host<'t> {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Default, serde::Deserialize, serde::Serialize)]
|
||||
#[serde(rename_all = "PascalCase")]
|
||||
pub struct Config {
|
||||
pub clusters: Vec<ClusterConfig>,
|
||||
pub hosts: Vec<HostConfig>,
|
||||
pub host_templates: Vec<HostConfig>,
|
||||
#[serde(rename = "SSLConfig")]
|
||||
pub ssl_config: String,
|
||||
}
|
||||
|
||||
#[derive(serde::Deserialize, serde::Serialize)]
|
||||
#[serde(rename_all = "PascalCase")]
|
||||
pub struct ClusterConfig {
|
||||
|
||||
Reference in New Issue
Block a user