#[non_exhaustive]pub struct SqlInstancesPromoteReplicaRequest {
pub instance: String,
pub project: String,
pub failover: bool,
/* private fields */
}
Expand description
Instance promote replica request.
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.instance: String
Cloud SQL read replica instance name.
project: String
ID of the project that contains the read replica.
failover: bool
Set to true to invoke a replica failover to the designated DR replica. As part of replica failover, the promote operation attempts to add the original primary instance as a replica of the promoted DR replica when the original primary instance comes back online. If set to false or not specified, then the original primary instance becomes an independent Cloud SQL primary instance. Only applicable to MySQL.
Implementations§
Trait Implementations§
Source§impl Clone for SqlInstancesPromoteReplicaRequest
impl Clone for SqlInstancesPromoteReplicaRequest
Source§fn clone(&self) -> SqlInstancesPromoteReplicaRequest
fn clone(&self) -> SqlInstancesPromoteReplicaRequest
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 Default for SqlInstancesPromoteReplicaRequest
impl Default for SqlInstancesPromoteReplicaRequest
Source§fn default() -> SqlInstancesPromoteReplicaRequest
fn default() -> SqlInstancesPromoteReplicaRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for SqlInstancesPromoteReplicaRequest
impl PartialEq for SqlInstancesPromoteReplicaRequest
Source§fn eq(&self, other: &SqlInstancesPromoteReplicaRequest) -> bool
fn eq(&self, other: &SqlInstancesPromoteReplicaRequest) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for SqlInstancesPromoteReplicaRequest
Auto Trait Implementations§
impl Freeze for SqlInstancesPromoteReplicaRequest
impl RefUnwindSafe for SqlInstancesPromoteReplicaRequest
impl Send for SqlInstancesPromoteReplicaRequest
impl Sync for SqlInstancesPromoteReplicaRequest
impl Unpin for SqlInstancesPromoteReplicaRequest
impl UnwindSafe for SqlInstancesPromoteReplicaRequest
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