pub struct IoK8sApiCoreV1ResourceRequirements {
pub limits: HashMap<String, IoK8sApimachineryPkgApiResourceQuantity>,
pub requests: HashMap<String, IoK8sApimachineryPkgApiResourceQuantity>,
}Expand description
ResourceRequirements describes the compute resource requirements.
Fields§
§limits: HashMap<String, IoK8sApimachineryPkgApiResourceQuantity>Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
requests: HashMap<String, IoK8sApimachineryPkgApiResourceQuantity>Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
Trait Implementations§
Source§impl Clone for IoK8sApiCoreV1ResourceRequirements
impl Clone for IoK8sApiCoreV1ResourceRequirements
Source§fn clone(&self) -> IoK8sApiCoreV1ResourceRequirements
fn clone(&self) -> IoK8sApiCoreV1ResourceRequirements
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<'de> Deserialize<'de> for IoK8sApiCoreV1ResourceRequirements
impl<'de> Deserialize<'de> for IoK8sApiCoreV1ResourceRequirements
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 From<&IoK8sApiCoreV1ResourceRequirements> for IoK8sApiCoreV1ResourceRequirements
impl From<&IoK8sApiCoreV1ResourceRequirements> for IoK8sApiCoreV1ResourceRequirements
Source§fn from(value: &IoK8sApiCoreV1ResourceRequirements) -> Self
fn from(value: &IoK8sApiCoreV1ResourceRequirements) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for IoK8sApiCoreV1ResourceRequirements
impl RefUnwindSafe for IoK8sApiCoreV1ResourceRequirements
impl Send for IoK8sApiCoreV1ResourceRequirements
impl Sync for IoK8sApiCoreV1ResourceRequirements
impl Unpin for IoK8sApiCoreV1ResourceRequirements
impl UnwindSafe for IoK8sApiCoreV1ResourceRequirements
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