pub struct ServiceTaskSpecResourcesReservation {
pub generic_resources: Box<Option<ServiceTaskSpecResourcesReservationGenericResources>>,
pub memory_bytes: Box<Option<i32>>,
pub nano_cpus: Box<Option<i32>>,
}
Fields§
§generic_resources: Box<Option<ServiceTaskSpecResourcesReservationGenericResources>>
User-defined resources can be either Integer resources (e.g, SSD=3
) or String resources (e.g, GPU=UUID1)
memory_bytes: Box<Option<i32>>
The amounf of memory in bytes the container allocates
nano_cpus: Box<Option<i32>>
CPU shares in units of 1/1e9 (or 10^-9) of the CPU. Should be at least 1000000
Implementations§
source§impl ServiceTaskSpecResourcesReservation
impl ServiceTaskSpecResourcesReservation
sourcepub fn builder() -> ServiceTaskSpecResourcesReservationBuilder
pub fn builder() -> ServiceTaskSpecResourcesReservationBuilder
Create an instance of ServiceTaskSpecResourcesReservation
using the builder syntax
Trait Implementations§
source§impl<'de> Deserialize<'de> for ServiceTaskSpecResourcesReservation
impl<'de> Deserialize<'de> for ServiceTaskSpecResourcesReservation
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
Auto Trait Implementations§
impl Freeze for ServiceTaskSpecResourcesReservation
impl RefUnwindSafe for ServiceTaskSpecResourcesReservation
impl Send for ServiceTaskSpecResourcesReservation
impl Sync for ServiceTaskSpecResourcesReservation
impl Unpin for ServiceTaskSpecResourcesReservation
impl UnwindSafe for ServiceTaskSpecResourcesReservation
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