#[non_exhaustive]pub struct SqlInstancesSwitchoverRequest {
pub instance: String,
pub project: String,
pub db_timeout: Option<Duration>,
/* private fields */
}
Expand description
Instance switchover 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 replica.
db_timeout: Option<Duration>
Optional. (MySQL only) Cloud SQL instance operations timeout, which is a sum of all database operations. Default value is 10 minutes and can be modified to a maximum value of 24 hours.
Implementations§
Source§impl SqlInstancesSwitchoverRequest
impl SqlInstancesSwitchoverRequest
pub fn new() -> Self
Sourcepub fn set_instance<T: Into<String>>(self, v: T) -> Self
pub fn set_instance<T: Into<String>>(self, v: T) -> Self
Sets the value of instance.
Sourcepub fn set_project<T: Into<String>>(self, v: T) -> Self
pub fn set_project<T: Into<String>>(self, v: T) -> Self
Sets the value of project.
Sourcepub fn set_db_timeout<T>(self, v: T) -> Self
pub fn set_db_timeout<T>(self, v: T) -> Self
Sets the value of db_timeout.
Sourcepub fn set_or_clear_db_timeout<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_db_timeout<T>(self, v: Option<T>) -> Self
Sets or clears the value of db_timeout.
Trait Implementations§
Source§impl Clone for SqlInstancesSwitchoverRequest
impl Clone for SqlInstancesSwitchoverRequest
Source§fn clone(&self) -> SqlInstancesSwitchoverRequest
fn clone(&self) -> SqlInstancesSwitchoverRequest
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 SqlInstancesSwitchoverRequest
impl Default for SqlInstancesSwitchoverRequest
Source§fn default() -> SqlInstancesSwitchoverRequest
fn default() -> SqlInstancesSwitchoverRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for SqlInstancesSwitchoverRequest
impl PartialEq for SqlInstancesSwitchoverRequest
Source§fn eq(&self, other: &SqlInstancesSwitchoverRequest) -> bool
fn eq(&self, other: &SqlInstancesSwitchoverRequest) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for SqlInstancesSwitchoverRequest
Auto Trait Implementations§
impl Freeze for SqlInstancesSwitchoverRequest
impl RefUnwindSafe for SqlInstancesSwitchoverRequest
impl Send for SqlInstancesSwitchoverRequest
impl Sync for SqlInstancesSwitchoverRequest
impl Unpin for SqlInstancesSwitchoverRequest
impl UnwindSafe for SqlInstancesSwitchoverRequest
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