pub struct ContainerResourceLimits {
pub cpu: Option<f64>,
pub memory: Option<String>,
}Expand description
Resource limits for a container
Fields§
§cpu: Option<f64>CPU limit in cores (e.g., 0.5, 1.0, 2.0)
memory: Option<String>Memory limit (e.g., “256Mi”, “1Gi”)
Trait Implementations§
Source§impl Clone for ContainerResourceLimits
impl Clone for ContainerResourceLimits
Source§fn clone(&self) -> ContainerResourceLimits
fn clone(&self) -> ContainerResourceLimits
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ComposeSchema for ContainerResourceLimits
impl ComposeSchema for ContainerResourceLimits
Source§impl Debug for ContainerResourceLimits
impl Debug for ContainerResourceLimits
Source§impl<'de> Deserialize<'de> for ContainerResourceLimits
impl<'de> Deserialize<'de> for ContainerResourceLimits
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
Source§impl Serialize for ContainerResourceLimits
impl Serialize for ContainerResourceLimits
Auto Trait Implementations§
impl Freeze for ContainerResourceLimits
impl RefUnwindSafe for ContainerResourceLimits
impl Send for ContainerResourceLimits
impl Sync for ContainerResourceLimits
impl Unpin for ContainerResourceLimits
impl UnsafeUnpin for ContainerResourceLimits
impl UnwindSafe for ContainerResourceLimits
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