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 for ContainerResizePolicy
impl PartialEq for ContainerResizePolicy
Source§impl Serialize for ContainerResizePolicy
impl Serialize for ContainerResizePolicy
impl StructuralPartialEq for ContainerResizePolicy
Auto Trait Implementations§
impl Freeze for ContainerResizePolicy
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