Struct k8s_openapi::api::core::v1::ResourceRequirements
source · pub struct ResourceRequirements {
pub claims: Option<Vec<ResourceClaim>>,
pub limits: Option<BTreeMap<String, Quantity>>,
pub requests: Option<BTreeMap<String, Quantity>>,
}
Expand description
ResourceRequirements describes the compute resource requirements.
Fields§
§claims: Option<Vec<ResourceClaim>>
Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container.
This is an alpha field and requires enabling the DynamicResourceAllocation feature gate.
This field is immutable. It can only be set for containers.
limits: Option<BTreeMap<String, Quantity>>
Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
requests: Option<BTreeMap<String, Quantity>>
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. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
Trait Implementations§
source§impl Clone for ResourceRequirements
impl Clone for ResourceRequirements
source§fn clone(&self) -> ResourceRequirements
fn clone(&self) -> ResourceRequirements
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ResourceRequirements
impl Debug for ResourceRequirements
source§impl DeepMerge for ResourceRequirements
impl DeepMerge for ResourceRequirements
source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
other
into self
.source§impl Default for ResourceRequirements
impl Default for ResourceRequirements
source§fn default() -> ResourceRequirements
fn default() -> ResourceRequirements
source§impl<'de> Deserialize<'de> for ResourceRequirements
impl<'de> Deserialize<'de> for ResourceRequirements
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>,
source§impl JsonSchema for ResourceRequirements
impl JsonSchema for ResourceRequirements
source§fn schema_name() -> String
fn schema_name() -> String
source§fn json_schema(__gen: &mut SchemaGenerator) -> Schema
fn json_schema(__gen: &mut SchemaGenerator) -> Schema
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read moresource§impl PartialEq for ResourceRequirements
impl PartialEq for ResourceRequirements
source§impl Serialize for ResourceRequirements
impl Serialize for ResourceRequirements
impl StructuralPartialEq for ResourceRequirements
Auto Trait Implementations§
impl Freeze for ResourceRequirements
impl RefUnwindSafe for ResourceRequirements
impl Send for ResourceRequirements
impl Sync for ResourceRequirements
impl Unpin for ResourceRequirements
impl UnwindSafe for ResourceRequirements
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)