#[non_exhaustive]pub struct CapacityConfig {
pub vcpu_count: i64,
pub memory_bytes: i64,
/* private fields */
}Expand description
A capacity configuration of a Kafka cluster.
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.vcpu_count: i64Required. The number of vCPUs to provision for the cluster. Minimum: 3.
memory_bytes: i64Required. The memory to provision for the cluster in bytes. The CPU:memory ratio (vCPU:GiB) must be between 1:1 and 1:8. Minimum: 3221225472 (3 GiB).
Implementations§
Source§impl CapacityConfig
impl CapacityConfig
pub fn new() -> Self
Sourcepub fn set_vcpu_count<T: Into<i64>>(self, v: T) -> Self
pub fn set_vcpu_count<T: Into<i64>>(self, v: T) -> Self
Sets the value of vcpu_count.
Sourcepub fn set_memory_bytes<T: Into<i64>>(self, v: T) -> Self
pub fn set_memory_bytes<T: Into<i64>>(self, v: T) -> Self
Sets the value of memory_bytes.
Trait Implementations§
Source§impl Clone for CapacityConfig
impl Clone for CapacityConfig
Source§fn clone(&self) -> CapacityConfig
fn clone(&self) -> CapacityConfig
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 CapacityConfig
impl Debug for CapacityConfig
Source§impl Default for CapacityConfig
impl Default for CapacityConfig
Source§fn default() -> CapacityConfig
fn default() -> CapacityConfig
Returns the “default value” for a type. Read more
Source§impl Message for CapacityConfig
impl Message for CapacityConfig
Source§impl PartialEq for CapacityConfig
impl PartialEq for CapacityConfig
impl StructuralPartialEq for CapacityConfig
Auto Trait Implementations§
impl Freeze for CapacityConfig
impl RefUnwindSafe for CapacityConfig
impl Send for CapacityConfig
impl Sync for CapacityConfig
impl Unpin for CapacityConfig
impl UnwindSafe for CapacityConfig
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