#[non_exhaustive]pub struct SqlInstancesPromoteReplicaRequest {
pub instance: String,
pub project: String,
pub failover: bool,
pub location: String,
/* 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: StringCloud SQL read replica instance name.
project: StringID of the project that contains the read replica.
failover: boolSet to true to invoke a replica failover to the 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.
location: StringOptional. Region of the Cloud SQL instance.
Implementations§
Source§impl SqlInstancesPromoteReplicaRequest
impl SqlInstancesPromoteReplicaRequest
Sourcepub fn set_instance<T: Into<String>>(self, v: T) -> Self
pub fn set_instance<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_project<T: Into<String>>(self, v: T) -> Self
pub fn set_project<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_failover<T: Into<bool>>(self, v: T) -> Self
pub fn set_failover<T: Into<bool>>(self, v: T) -> Self
Trait Implementations§
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 UnsafeUnpin 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