| 17 | #[serde_as] |
| 18 | #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize, Eq)] |
| 19 | pub struct DockerHost { |
| 20 | /// The unique identifier for the docker host. |
| 21 | #[serde(rename = "id")] |
| 22 | #[serde_as(as = "Option<DeserializeNumberLenient>")] |
| 23 | pub id: Option<i32>, |
| 24 | |
| 25 | /// The name of the docker host. |
| 26 | #[serde(rename = "name")] |
| 27 | pub name: Option<String>, |
| 28 | |
| 29 | /// The connection type. |
| 30 | #[serde(rename = "dockerType")] |
| 31 | #[serde(alias = "connection_type")] |
| 32 | pub connection_type: Option<DockerConnectionType>, |
| 33 | |
| 34 | /// The docker host. Depending on the connection type, this could be a uri or a path to a socket. |
| 35 | #[serde(rename = "dockerDaemon")] |
| 36 | #[serde(alias = "host")] |
| 37 | #[serde(alias = "path")] |
| 38 | pub host: Option<String>, |
| 39 | |
| 40 | /// The user identifier associated with the docker host. |
| 41 | #[serde(rename = "userId")] |
| 42 | #[serde_as(as = "Option<DeserializeNumberLenient>")] |
| 43 | pub user_id: Option<i32>, |
| 44 | } |
| 45 | |
| 46 | impl DockerHost { |
| 47 | pub fn new() -> Self { |
no outgoing calls
no test coverage detected