#[non_exhaustive]pub struct AsymmetricAutoscalingOption {
pub replica_selection: Option<ReplicaSelection>,
pub overrides: Option<AutoscalingConfigOverrides>,
/* private fields */
}Expand description
AsymmetricAutoscalingOption specifies the scaling of replicas identified by the given selection.
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.replica_selection: Option<ReplicaSelection>Required. Selects the replicas to which this AsymmetricAutoscalingOption applies. Only read-only replicas are supported.
overrides: Option<AutoscalingConfigOverrides>Optional. Overrides applied to the top-level autoscaling configuration for the selected replicas.
Implementations§
Source§impl AsymmetricAutoscalingOption
impl AsymmetricAutoscalingOption
pub fn new() -> Self
Sourcepub fn set_replica_selection<T>(self, v: T) -> Selfwhere
T: Into<ReplicaSelection>,
pub fn set_replica_selection<T>(self, v: T) -> Selfwhere
T: Into<ReplicaSelection>,
Sets the value of replica_selection.
§Example
ⓘ
use google_cloud_spanner_admin_instance_v1::model::ReplicaSelection;
let x = AsymmetricAutoscalingOption::new().set_replica_selection(ReplicaSelection::default()/* use setters */);Sourcepub fn set_or_clear_replica_selection<T>(self, v: Option<T>) -> Selfwhere
T: Into<ReplicaSelection>,
pub fn set_or_clear_replica_selection<T>(self, v: Option<T>) -> Selfwhere
T: Into<ReplicaSelection>,
Sets or clears the value of replica_selection.
§Example
ⓘ
use google_cloud_spanner_admin_instance_v1::model::ReplicaSelection;
let x = AsymmetricAutoscalingOption::new().set_or_clear_replica_selection(Some(ReplicaSelection::default()/* use setters */));
let x = AsymmetricAutoscalingOption::new().set_or_clear_replica_selection(None::<ReplicaSelection>);Sourcepub fn set_overrides<T>(self, v: T) -> Selfwhere
T: Into<AutoscalingConfigOverrides>,
pub fn set_overrides<T>(self, v: T) -> Selfwhere
T: Into<AutoscalingConfigOverrides>,
Sourcepub fn set_or_clear_overrides<T>(self, v: Option<T>) -> Selfwhere
T: Into<AutoscalingConfigOverrides>,
pub fn set_or_clear_overrides<T>(self, v: Option<T>) -> Selfwhere
T: Into<AutoscalingConfigOverrides>,
Sets or clears the value of overrides.
§Example
ⓘ
use google_cloud_spanner_admin_instance_v1::model::autoscaling_config::asymmetric_autoscaling_option::AutoscalingConfigOverrides;
let x = AsymmetricAutoscalingOption::new().set_or_clear_overrides(Some(AutoscalingConfigOverrides::default()/* use setters */));
let x = AsymmetricAutoscalingOption::new().set_or_clear_overrides(None::<AutoscalingConfigOverrides>);Trait Implementations§
Source§impl Clone for AsymmetricAutoscalingOption
impl Clone for AsymmetricAutoscalingOption
Source§fn clone(&self) -> AsymmetricAutoscalingOption
fn clone(&self) -> AsymmetricAutoscalingOption
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 AsymmetricAutoscalingOption
impl Debug for AsymmetricAutoscalingOption
Source§impl Default for AsymmetricAutoscalingOption
impl Default for AsymmetricAutoscalingOption
Source§fn default() -> AsymmetricAutoscalingOption
fn default() -> AsymmetricAutoscalingOption
Returns the “default value” for a type. Read more
impl StructuralPartialEq for AsymmetricAutoscalingOption
Auto Trait Implementations§
impl Freeze for AsymmetricAutoscalingOption
impl RefUnwindSafe for AsymmetricAutoscalingOption
impl Send for AsymmetricAutoscalingOption
impl Sync for AsymmetricAutoscalingOption
impl Unpin for AsymmetricAutoscalingOption
impl UnsafeUnpin for AsymmetricAutoscalingOption
impl UnwindSafe for AsymmetricAutoscalingOption
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