#[non_exhaustive]pub enum ComputeCapacity {
NodeCount(i32),
ProcessingUnits(i32),
}Expand description
Compute capacity allocated to each replica identified by the specified selection. The unit is selected based on the unit used to specify the instance size for non-autoscaling instances, or the unit used in autoscaling limit for autoscaling instances.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NodeCount(i32)
The number of nodes allocated to each replica.
This may be zero in API responses for instances that are not yet in
state READY.
ProcessingUnits(i32)
The number of processing units allocated to each replica.
This may be zero in API responses for instances that are not yet in
state READY.
Trait Implementations§
Source§impl Clone for ComputeCapacity
impl Clone for ComputeCapacity
Source§fn clone(&self) -> ComputeCapacity
fn clone(&self) -> ComputeCapacity
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 ComputeCapacity
impl Debug for ComputeCapacity
Source§impl PartialEq for ComputeCapacity
impl PartialEq for ComputeCapacity
impl StructuralPartialEq for ComputeCapacity
Auto Trait Implementations§
impl Freeze for ComputeCapacity
impl RefUnwindSafe for ComputeCapacity
impl Send for ComputeCapacity
impl Sync for ComputeCapacity
impl Unpin for ComputeCapacity
impl UnwindSafe for ComputeCapacity
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