pub struct ReplicaComputeCapacity {
pub node_count: Option<i32>,
pub processing_units: Option<i32>,
pub replica_selection: Option<InstanceReplicaSelection>,
}Expand description
ReplicaComputeCapacity describes the amount of server resources that are allocated to each replica identified by the replica selection.
This type is not used in any activity, and only used as part of another schema.
Fields§
§node_count: Option<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.
processing_units: Option<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.
replica_selection: Option<InstanceReplicaSelection>Required. Identifies replicas by specified properties. All replicas in the selection have the same amount of compute capacity.
Trait Implementations§
Source§impl Clone for ReplicaComputeCapacity
impl Clone for ReplicaComputeCapacity
Source§fn clone(&self) -> ReplicaComputeCapacity
fn clone(&self) -> ReplicaComputeCapacity
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 ReplicaComputeCapacity
impl Debug for ReplicaComputeCapacity
Source§impl Default for ReplicaComputeCapacity
impl Default for ReplicaComputeCapacity
Source§fn default() -> ReplicaComputeCapacity
fn default() -> ReplicaComputeCapacity
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ReplicaComputeCapacity
impl<'de> Deserialize<'de> for ReplicaComputeCapacity
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 Serialize for ReplicaComputeCapacity
impl Serialize for ReplicaComputeCapacity
impl Part for ReplicaComputeCapacity
Auto Trait Implementations§
impl Freeze for ReplicaComputeCapacity
impl RefUnwindSafe for ReplicaComputeCapacity
impl Send for ReplicaComputeCapacity
impl Sync for ReplicaComputeCapacity
impl Unpin for ReplicaComputeCapacity
impl UnwindSafe for ReplicaComputeCapacity
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