updated models to parse json better
All checks were successful
Rust Cross-Platform Build / Detect Rust Project (push) Successful in 4s
Rust Cross-Platform Build / Run Tests (push) Successful in 1m19s
Rust Cross-Platform Build / Build (x86_64-unknown-linux-gnu) (push) Successful in 3m28s
Rust Cross-Platform Build / Build (x86_64-pc-windows-gnu) (push) Successful in 4m26s
Rust Cross-Platform Build / Set Tag Name (push) Successful in 4s
Rust Cross-Platform Build / Build and Push Docker Image (push) Successful in 2m31s
Rust Cross-Platform Build / Workflow Summary (push) Successful in 2s
Rust Cross-Platform Build / Create Tag (push) Successful in 5s

This commit is contained in:
2025-10-29 12:11:30 +01:00
parent c90a276dca
commit a8ccb0521a
4 changed files with 47 additions and 30 deletions

View File

@@ -185,6 +185,7 @@ pub struct Acknowledgment {
#[derive(Debug, Serialize, Clone)]
pub struct DockerRegistrationDto {
/// Unique server identifier (integer)
#[serde(rename = "Server_id")]
pub server_id: u16,
/// Number of currently running containers
// pub container_count: usize, --- IGNORE ---
@@ -197,7 +198,8 @@ pub struct DockerRegistrationDto {
/// id: unique container ID (first 12 hex digits)
/// image: docker image name
/// name: container name
pub containers: String, // Vec<DockerContainer>,
#[serde(rename = "Containers")]
pub containers: Vec<DockerContainer>, // Vec<DockerContainer>,
}
#[derive(Debug, Serialize, Clone)]
@@ -257,6 +259,8 @@ pub struct DockerContainerInfo {
#[derive(Debug, Serialize, Clone)]
pub struct DockerContainer {
pub id: String,
#[serde(default)]
pub image: Option<String>,
#[serde(default)]
pub name: Option<String>,
}