pub struct ClusterReplicaSizeValue {Show 14 fields
pub name: String,
pub memory_limit: Option<u64>,
pub cpu_limit: Option<u64>,
pub cpu_request: Option<u64>,
pub disk_limit: Option<u64>,
pub scale: u16,
pub workers: u64,
pub credits_per_hour: String,
pub cpu_exclusive: bool,
pub is_cc: bool,
pub family: Option<String>,
pub swap_enabled: bool,
pub disabled: bool,
pub selectors: BTreeMap<String, String>,
}Fields§
§name: StringThe human-readable name of the size.
memory_limit: Option<u64>The memory limit for each process, in bytes.
cpu_limit: Option<u64>The CPU limit for each process, in nanocpus.
cpu_request: Option<u64>The CPU request for each process, in nanocpus.
disk_limit: Option<u64>The disk limit for each process, in bytes.
scale: u16The number of processes in the replica.
workers: u64The number of worker threads per process.
credits_per_hour: StringThe number of credits per hour that the replica consumes.
cpu_exclusive: boolWhether each process has exclusive access to its CPU cores.
is_cc: boolWhether this size represents a modern “cc” size rather than a legacy T-shirt size.
family: Option<String>The size family, e.g. D for D.1-xsmall.
swap_enabled: boolWhether instances of this type use swap as the spill-to-disk mechanism.
disabled: boolWhether instances of this type can be created.
selectors: BTreeMap<String, String>Additional node selectors.
Trait Implementations§
Source§impl Arbitrary for ClusterReplicaSizeValue
impl Arbitrary for ClusterReplicaSizeValue
Source§type Parameters = (<String as Arbitrary>::Parameters, <Option<u64> as Arbitrary>::Parameters, <Option<u64> as Arbitrary>::Parameters, <Option<u64> as Arbitrary>::Parameters, <Option<u64> as Arbitrary>::Parameters, <u16 as Arbitrary>::Parameters, <u64 as Arbitrary>::Parameters, <String as Arbitrary>::Parameters, <bool as Arbitrary>::Parameters, (<bool as Arbitrary>::Parameters, <Option<String> as Arbitrary>::Parameters, <bool as Arbitrary>::Parameters, <bool as Arbitrary>::Parameters, <BTreeMap<String, String> as Arbitrary>::Parameters))
type Parameters = (<String as Arbitrary>::Parameters, <Option<u64> as Arbitrary>::Parameters, <Option<u64> as Arbitrary>::Parameters, <Option<u64> as Arbitrary>::Parameters, <Option<u64> as Arbitrary>::Parameters, <u16 as Arbitrary>::Parameters, <u64 as Arbitrary>::Parameters, <String as Arbitrary>::Parameters, <bool as Arbitrary>::Parameters, (<bool as Arbitrary>::Parameters, <Option<String> as Arbitrary>::Parameters, <bool as Arbitrary>::Parameters, <bool as Arbitrary>::Parameters, <BTreeMap<String, String> as Arbitrary>::Parameters))
The type of parameters that
arbitrary_with accepts for configuration
of the generated Strategy. Parameters must implement Default.Source§type Strategy = Map<(<String as Arbitrary>::Strategy, <Option<u64> as Arbitrary>::Strategy, <Option<u64> as Arbitrary>::Strategy, <Option<u64> as Arbitrary>::Strategy, <Option<u64> as Arbitrary>::Strategy, <u16 as Arbitrary>::Strategy, <u64 as Arbitrary>::Strategy, <String as Arbitrary>::Strategy, <bool as Arbitrary>::Strategy, (<bool as Arbitrary>::Strategy, <Option<String> as Arbitrary>::Strategy, <bool as Arbitrary>::Strategy, <bool as Arbitrary>::Strategy, <BTreeMap<String, String> as Arbitrary>::Strategy)), fn((String, Option<u64>, Option<u64>, Option<u64>, Option<u64>, u16, u64, String, bool, (bool, Option<String>, bool, bool, BTreeMap<String, String>))) -> ClusterReplicaSizeValue>
type Strategy = Map<(<String as Arbitrary>::Strategy, <Option<u64> as Arbitrary>::Strategy, <Option<u64> as Arbitrary>::Strategy, <Option<u64> as Arbitrary>::Strategy, <Option<u64> as Arbitrary>::Strategy, <u16 as Arbitrary>::Strategy, <u64 as Arbitrary>::Strategy, <String as Arbitrary>::Strategy, <bool as Arbitrary>::Strategy, (<bool as Arbitrary>::Strategy, <Option<String> as Arbitrary>::Strategy, <bool as Arbitrary>::Strategy, <bool as Arbitrary>::Strategy, <BTreeMap<String, String> as Arbitrary>::Strategy)), fn((String, Option<u64>, Option<u64>, Option<u64>, Option<u64>, u16, u64, String, bool, (bool, Option<String>, bool, bool, BTreeMap<String, String>))) -> ClusterReplicaSizeValue>
The type of
Strategy used to generate values of type Self.Source§fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
Source§impl Clone for ClusterReplicaSizeValue
impl Clone for ClusterReplicaSizeValue
Source§fn clone(&self) -> ClusterReplicaSizeValue
fn clone(&self) -> ClusterReplicaSizeValue
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 ClusterReplicaSizeValue
impl Debug for ClusterReplicaSizeValue
Source§impl<'de> Deserialize<'de> for ClusterReplicaSizeValue
impl<'de> Deserialize<'de> for ClusterReplicaSizeValue
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 ClusterReplicaSizeValue
Source§impl Ord for ClusterReplicaSizeValue
impl Ord for ClusterReplicaSizeValue
Source§fn cmp(&self, other: &ClusterReplicaSizeValue) -> Ordering
fn cmp(&self, other: &ClusterReplicaSizeValue) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ClusterReplicaSizeValue
impl PartialEq for ClusterReplicaSizeValue
Source§impl PartialOrd for ClusterReplicaSizeValue
impl PartialOrd for ClusterReplicaSizeValue
Source§impl Serialize for ClusterReplicaSizeValue
impl Serialize for ClusterReplicaSizeValue
impl StructuralPartialEq for ClusterReplicaSizeValue
Auto Trait Implementations§
impl Freeze for ClusterReplicaSizeValue
impl RefUnwindSafe for ClusterReplicaSizeValue
impl Send for ClusterReplicaSizeValue
impl Sync for ClusterReplicaSizeValue
impl Unpin for ClusterReplicaSizeValue
impl UnsafeUnpin for ClusterReplicaSizeValue
impl UnwindSafe for ClusterReplicaSizeValue
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