changed to camelcase
This commit is contained in:
@@ -185,7 +185,7 @@ pub struct Acknowledgment {
|
||||
#[derive(Debug, Serialize, Clone)]
|
||||
pub struct DockerRegistrationDto {
|
||||
/// Unique server identifier (integer)
|
||||
#[serde(rename = "Server_id")]
|
||||
#[serde(rename = "serverId")]
|
||||
pub server_id: u16,
|
||||
/// Number of currently running containers
|
||||
// pub container_count: usize, --- IGNORE ---
|
||||
@@ -198,12 +198,13 @@ pub struct DockerRegistrationDto {
|
||||
/// id: unique container ID (first 12 hex digits)
|
||||
/// image: docker image name
|
||||
/// name: container name
|
||||
#[serde(rename = "Containers")]
|
||||
#[serde(rename = "containers")]
|
||||
pub containers: Vec<DockerContainer>, // Vec<DockerContainer>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize, Clone)]
|
||||
pub struct DockerMetricDto {
|
||||
#[serde(rename = "serverId")]
|
||||
pub server_id: u16,
|
||||
/// json stringified array of DockerContainer
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user