#[non_exhaustive]pub struct NodeTypeConfig {
pub node_count: i32,
pub custom_core_count: i32,
/* private fields */
}Expand description
Information about the type and number of nodes associated with the 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.node_count: i32Required. The number of nodes of this type in the cluster
custom_core_count: i32Optional. Customized number of cores available to each node of the type.
This number must always be one of nodeType.availableCustomCoreCounts.
If zero is provided max value from nodeType.availableCustomCoreCounts
will be used.
Implementations§
Source§impl NodeTypeConfig
impl NodeTypeConfig
pub fn new() -> Self
Sourcepub fn set_node_count<T: Into<i32>>(self, v: T) -> Self
pub fn set_node_count<T: Into<i32>>(self, v: T) -> Self
Sets the value of node_count.
Sourcepub fn set_custom_core_count<T: Into<i32>>(self, v: T) -> Self
pub fn set_custom_core_count<T: Into<i32>>(self, v: T) -> Self
Sets the value of custom_core_count.
Trait Implementations§
Source§impl Clone for NodeTypeConfig
impl Clone for NodeTypeConfig
Source§fn clone(&self) -> NodeTypeConfig
fn clone(&self) -> NodeTypeConfig
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 NodeTypeConfig
impl Debug for NodeTypeConfig
Source§impl Default for NodeTypeConfig
impl Default for NodeTypeConfig
Source§fn default() -> NodeTypeConfig
fn default() -> NodeTypeConfig
Returns the “default value” for a type. Read more
Source§impl Message for NodeTypeConfig
impl Message for NodeTypeConfig
Source§impl PartialEq for NodeTypeConfig
impl PartialEq for NodeTypeConfig
impl StructuralPartialEq for NodeTypeConfig
Auto Trait Implementations§
impl Freeze for NodeTypeConfig
impl RefUnwindSafe for NodeTypeConfig
impl Send for NodeTypeConfig
impl Sync for NodeTypeConfig
impl Unpin for NodeTypeConfig
impl UnwindSafe for NodeTypeConfig
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