#[non_exhaustive]pub struct Thresholds {
pub scale_out: i32,
pub scale_in: i32,
/* private fields */
}Expand description
Thresholds define the utilization of resources triggering scale-out and scale-in operations.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.scale_out: i32Required. The utilization triggering the scale-out operation in percent.
scale_in: i32Required. The utilization triggering the scale-in operation in percent.
Implementations§
Source§impl Thresholds
impl Thresholds
Trait Implementations§
Source§impl Clone for Thresholds
impl Clone for Thresholds
Source§fn clone(&self) -> Thresholds
fn clone(&self) -> Thresholds
Returns a duplicate 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 Thresholds
impl Debug for Thresholds
Source§impl Default for Thresholds
impl Default for Thresholds
Source§fn default() -> Thresholds
fn default() -> Thresholds
Returns the “default value” for a type. Read more
Source§impl PartialEq for Thresholds
impl PartialEq for Thresholds
impl StructuralPartialEq for Thresholds
Auto Trait Implementations§
impl Freeze for Thresholds
impl RefUnwindSafe for Thresholds
impl Send for Thresholds
impl Sync for Thresholds
impl Unpin for Thresholds
impl UnwindSafe for Thresholds
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