Struct k8s_openapi::api::core::v1::VolumeResourceRequirements
source · pub struct VolumeResourceRequirements {
pub limits: Option<BTreeMap<String, Quantity>>,
pub requests: Option<BTreeMap<String, Quantity>>,
}
Expand description
VolumeResourceRequirements describes the storage resource requirements for a volume.
Fields§
§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 VolumeResourceRequirements
impl Clone for VolumeResourceRequirements
source§fn clone(&self) -> VolumeResourceRequirements
fn clone(&self) -> VolumeResourceRequirements
Returns a copy 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 Debug for VolumeResourceRequirements
impl Debug for VolumeResourceRequirements
source§impl DeepMerge for VolumeResourceRequirements
impl DeepMerge for VolumeResourceRequirements
source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.source§impl Default for VolumeResourceRequirements
impl Default for VolumeResourceRequirements
source§fn default() -> VolumeResourceRequirements
fn default() -> VolumeResourceRequirements
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for VolumeResourceRequirements
impl<'de> Deserialize<'de> for VolumeResourceRequirements
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 PartialEq for VolumeResourceRequirements
impl PartialEq for VolumeResourceRequirements
source§fn eq(&self, other: &VolumeResourceRequirements) -> bool
fn eq(&self, other: &VolumeResourceRequirements) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for VolumeResourceRequirements
Auto Trait Implementations§
impl RefUnwindSafe for VolumeResourceRequirements
impl Send for VolumeResourceRequirements
impl Sync for VolumeResourceRequirements
impl Unpin for VolumeResourceRequirements
impl UnwindSafe for VolumeResourceRequirements
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