Struct k8s_openapi::api::core::v1::ContainerResizePolicy
source · pub struct ContainerResizePolicy {
pub resource_name: String,
pub restart_policy: String,
}
Expand description
ContainerResizePolicy represents resource resize policy for the container.
Fields§
§resource_name: String
Name of the resource to which this resource resize policy applies. Supported values: cpu, memory.
restart_policy: String
Restart policy to apply when specified resource is resized. If not specified, it defaults to NotRequired.
Trait Implementations§
source§impl Clone for ContainerResizePolicy
impl Clone for ContainerResizePolicy
source§fn clone(&self) -> ContainerResizePolicy
fn clone(&self) -> ContainerResizePolicy
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 ContainerResizePolicy
impl Debug for ContainerResizePolicy
source§impl DeepMerge for ContainerResizePolicy
impl DeepMerge for ContainerResizePolicy
source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.source§impl Default for ContainerResizePolicy
impl Default for ContainerResizePolicy
source§fn default() -> ContainerResizePolicy
fn default() -> ContainerResizePolicy
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ContainerResizePolicy
impl<'de> Deserialize<'de> for ContainerResizePolicy
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<ContainerResizePolicy> for ContainerResizePolicy
impl PartialEq<ContainerResizePolicy> for ContainerResizePolicy
source§fn eq(&self, other: &ContainerResizePolicy) -> bool
fn eq(&self, other: &ContainerResizePolicy) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ContainerResizePolicy
impl Serialize for ContainerResizePolicy
impl StructuralPartialEq for ContainerResizePolicy
Auto Trait Implementations§
impl RefUnwindSafe for ContainerResizePolicy
impl Send for ContainerResizePolicy
impl Sync for ContainerResizePolicy
impl Unpin for ContainerResizePolicy
impl UnwindSafe for ContainerResizePolicy
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