nomad_client_rs/models/
allocated_task_resources.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize)]
4pub struct AllocatedTaskResources {
5    #[serde(rename = "Cpu", skip_serializing_if = "Option::is_none")]
6    pub cpu: Option<crate::models::AllocatedCpuResources>,
7    #[serde(rename = "Devices", skip_serializing_if = "Option::is_none")]
8    pub devices: Option<Vec<crate::models::AllocatedDeviceResource>>,
9    #[serde(rename = "Memory", skip_serializing_if = "Option::is_none")]
10    pub memory: Option<crate::models::AllocatedMemoryResources>,
11    #[serde(rename = "Networks", skip_serializing_if = "Option::is_none")]
12    pub networks: Option<Vec<crate::models::NetworkResource>>,
13}