1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#[derive(Serialize, Deserialize, Clone, Debug, Default)]
#[cfg_attr(feature = "filesystem", serde(deny_unknown_fields))]
pub struct HealthCheck {
#[serde(default = "health_check_url_default")]
pub uri: String,
#[serde(default = "health_check_wait_time_default")]
pub wait: u32,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub port: Option<u32>,
}
fn health_check_url_default() -> String {
"/health".into()
}
fn health_check_wait_time_default() -> u32 {
30
}