#[non_exhaustive]pub struct StretchedClusterConfig {
pub preferred_location: String,
pub secondary_location: String,
/* private fields */
}Expand description
Configuration of a stretched 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.preferred_location: StringRequired. Zone that will remain operational when connection between the two
zones is lost. Specify the resource name of a zone that belongs to the
region of the private cloud. For example:
projects/{project}/locations/europe-west3-a where {project} can either
be a project number or a project ID.
secondary_location: StringRequired. Additional zone for a higher level of availability and load
balancing. Specify the resource name of a zone that belongs to the region
of the private cloud. For example:
projects/{project}/locations/europe-west3-b where {project} can either
be a project number or a project ID.
Implementations§
Source§impl StretchedClusterConfig
impl StretchedClusterConfig
pub fn new() -> Self
Sourcepub fn set_preferred_location<T: Into<String>>(self, v: T) -> Self
pub fn set_preferred_location<T: Into<String>>(self, v: T) -> Self
Sets the value of preferred_location.
Sourcepub fn set_secondary_location<T: Into<String>>(self, v: T) -> Self
pub fn set_secondary_location<T: Into<String>>(self, v: T) -> Self
Sets the value of secondary_location.
Trait Implementations§
Source§impl Clone for StretchedClusterConfig
impl Clone for StretchedClusterConfig
Source§fn clone(&self) -> StretchedClusterConfig
fn clone(&self) -> StretchedClusterConfig
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 StretchedClusterConfig
impl Debug for StretchedClusterConfig
Source§impl Default for StretchedClusterConfig
impl Default for StretchedClusterConfig
Source§fn default() -> StretchedClusterConfig
fn default() -> StretchedClusterConfig
Returns the “default value” for a type. Read more
Source§impl Message for StretchedClusterConfig
impl Message for StretchedClusterConfig
Source§impl PartialEq for StretchedClusterConfig
impl PartialEq for StretchedClusterConfig
impl StructuralPartialEq for StretchedClusterConfig
Auto Trait Implementations§
impl Freeze for StretchedClusterConfig
impl RefUnwindSafe for StretchedClusterConfig
impl Send for StretchedClusterConfig
impl Sync for StretchedClusterConfig
impl Unpin for StretchedClusterConfig
impl UnwindSafe for StretchedClusterConfig
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