pub struct ServiceTaskSpecResourcesLimits {
pub memory_bytes: Box<Option<i32>>,
pub nano_cpus: Box<Option<i32>>,
}
Fields§
§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 ServiceTaskSpecResourcesLimits
impl ServiceTaskSpecResourcesLimits
sourcepub fn builder() -> ServiceTaskSpecResourcesLimitsBuilder
pub fn builder() -> ServiceTaskSpecResourcesLimitsBuilder
Create an instance of ServiceTaskSpecResourcesLimits
using the builder syntax
Trait Implementations§
source§impl<'de> Deserialize<'de> for ServiceTaskSpecResourcesLimits
impl<'de> Deserialize<'de> for ServiceTaskSpecResourcesLimits
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 ServiceTaskSpecResourcesLimits
impl RefUnwindSafe for ServiceTaskSpecResourcesLimits
impl Send for ServiceTaskSpecResourcesLimits
impl Sync for ServiceTaskSpecResourcesLimits
impl Unpin for ServiceTaskSpecResourcesLimits
impl UnwindSafe for ServiceTaskSpecResourcesLimits
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