pub struct Resources {
pub disk_mb: Option<i64>,
pub devices: Vec<RequestedDevice>,
pub cpu: Option<i64>,
pub memory_mb: Option<i64>,
pub memory_max_mb: Option<i64>,
pub secrets_mb: Option<i64>,
pub iops: Option<i64>,
pub cores: Option<i64>,
pub networks: Vec<NetworkResource>,
pub numa: Option<NumaResource>,
}
Expand description
Resources encapsulates the required resources of a given task or task group.
This struct was generated based on the Go types of the official Nomad API client.
Fields§
§disk_mb: Option<i64>
§devices: Vec<RequestedDevice>
§cpu: Option<i64>
§memory_mb: Option<i64>
§memory_max_mb: Option<i64>
§secrets_mb: Option<i64>
§iops: Option<i64>
COMPAT(0.10) XXX Deprecated. Please do not use. The field will be removed in Nomad 0.10 and is only being kept to allow any references to be removed before then.
cores: Option<i64>
§networks: Vec<NetworkResource>
§numa: Option<NumaResource>
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Resources
impl<'de> Deserialize<'de> for Resources
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Resources
Auto Trait Implementations§
impl Freeze for Resources
impl RefUnwindSafe for Resources
impl Send for Resources
impl Sync for Resources
impl Unpin for Resources
impl UnwindSafe for Resources
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more