pub struct ScaleDirection {
pub stabilization_window: Option<Duration>,
pub policies: Vec<ScalePolicy>,
pub select: PolicySelect,
}Expand description
Velocity policy for one scaling direction.
Fields§
§stabilization_window: Option<Duration>How long to remember prior recommendations and pick the most conservative (highest on scale-down, lowest on scale-up) to damp flapping. Kubernetes default: 0s scale-up, 300s scale-down.
policies: Vec<ScalePolicy>Rate-limit policies; the select policy chooses among them.
select: PolicySelectWhich policy value to apply when multiple are given.
Trait Implementations§
Source§impl Clone for ScaleDirection
impl Clone for ScaleDirection
Source§fn clone(&self) -> ScaleDirection
fn clone(&self) -> ScaleDirection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ScaleDirection
impl Debug for ScaleDirection
Source§impl<'de> Deserialize<'de> for ScaleDirection
impl<'de> Deserialize<'de> for ScaleDirection
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
impl Eq for ScaleDirection
Source§impl PartialEq for ScaleDirection
impl PartialEq for ScaleDirection
Source§fn eq(&self, other: &ScaleDirection) -> bool
fn eq(&self, other: &ScaleDirection) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ScaleDirection
impl Serialize for ScaleDirection
impl StructuralPartialEq for ScaleDirection
Auto Trait Implementations§
impl Freeze for ScaleDirection
impl RefUnwindSafe for ScaleDirection
impl Send for ScaleDirection
impl Sync for ScaleDirection
impl Unpin for ScaleDirection
impl UnsafeUnpin for ScaleDirection
impl UnwindSafe for ScaleDirection
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.