#[non_exhaustive]pub struct ClusterConfig {
pub cluster_autoscaling_config: Option<ClusterAutoscalingConfig>,
/* private fields */
}Expand description
Configuration for a 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.cluster_autoscaling_config: Option<ClusterAutoscalingConfig>Autoscaling configuration for this cluster.
Implementations§
Source§impl ClusterConfig
impl ClusterConfig
pub fn new() -> Self
Sourcepub fn set_cluster_autoscaling_config<T>(self, v: T) -> Selfwhere
T: Into<ClusterAutoscalingConfig>,
pub fn set_cluster_autoscaling_config<T>(self, v: T) -> Selfwhere
T: Into<ClusterAutoscalingConfig>,
Sets the value of cluster_autoscaling_config.
§Example
ⓘ
use google_cloud_bigtable_admin_v2::model::cluster::ClusterAutoscalingConfig;
let x = ClusterConfig::new().set_cluster_autoscaling_config(ClusterAutoscalingConfig::default()/* use setters */);Sourcepub fn set_or_clear_cluster_autoscaling_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<ClusterAutoscalingConfig>,
pub fn set_or_clear_cluster_autoscaling_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<ClusterAutoscalingConfig>,
Sets or clears the value of cluster_autoscaling_config.
§Example
ⓘ
use google_cloud_bigtable_admin_v2::model::cluster::ClusterAutoscalingConfig;
let x = ClusterConfig::new().set_or_clear_cluster_autoscaling_config(Some(ClusterAutoscalingConfig::default()/* use setters */));
let x = ClusterConfig::new().set_or_clear_cluster_autoscaling_config(None::<ClusterAutoscalingConfig>);Trait Implementations§
Source§impl Clone for ClusterConfig
impl Clone for ClusterConfig
Source§fn clone(&self) -> ClusterConfig
fn clone(&self) -> ClusterConfig
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 ClusterConfig
impl Debug for ClusterConfig
Source§impl Default for ClusterConfig
impl Default for ClusterConfig
Source§fn default() -> ClusterConfig
fn default() -> ClusterConfig
Returns the “default value” for a type. Read more
Source§impl Message for ClusterConfig
impl Message for ClusterConfig
Source§impl PartialEq for ClusterConfig
impl PartialEq for ClusterConfig
impl StructuralPartialEq for ClusterConfig
Auto Trait Implementations§
impl Freeze for ClusterConfig
impl RefUnwindSafe for ClusterConfig
impl Send for ClusterConfig
impl Sync for ClusterConfig
impl Unpin for ClusterConfig
impl UnwindSafe for ClusterConfig
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