#[non_exhaustive]pub enum ComputeCapacity {
NodeCount(i32),
ProcessingUnits(i32),
}Expand description
Compute capacity defines amount of server and storage resources that are
available to the databases in an instance partition. At most, one of either
node_count or processing_units should be present in the message. For
more information, see
Compute capacity, nodes, and processing
units.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
NodeCount(i32)
The number of nodes allocated to this instance partition.
Users can set the node_count field to specify the target number of
nodes allocated to the instance partition.
This may be zero in API responses for instance partitions that are not
yet in state READY.
ProcessingUnits(i32)
The number of processing units allocated to this instance partition.
Users can set the processing_units field to specify the target number
of processing units allocated to the instance partition.
This might be zero in API responses for instance partitions that are not
yet in the READY state.
Trait Implementations§
Source§impl Clone for ComputeCapacity
impl Clone for ComputeCapacity
Source§fn clone(&self) -> ComputeCapacity
fn clone(&self) -> ComputeCapacity
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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 UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request