pub struct Resources {
pub memory_mb: Option<i64>,
pub devices: Vec<RequestedDevice>,
pub numa: Option<NUMAResource>,
pub secrets_mb: Option<i64>,
pub iops: Option<i64>,
pub cpu: Option<i64>,
pub memory_max_mb: Option<i64>,
pub disk_mb: Option<i64>,
pub networks: Vec<NetworkResource>,
pub cores: Option<i64>,
}
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.
Fields§
§memory_mb: Option<i64>
§devices: Vec<RequestedDevice>
§numa: Option<NUMAResource>
§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.
cpu: Option<i64>
§memory_max_mb: Option<i64>
§disk_mb: Option<i64>
§networks: Vec<NetworkResource>
§cores: Option<i64>
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