#[non_exhaustive]pub struct DemoteMasterConfiguration {
pub kind: String,
pub mysql_replica_configuration: Option<DemoteMasterMySqlReplicaConfiguration>,
/* private fields */
}
Expand description
Read-replica configuration for connecting to the on-premises primary instance.
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.kind: String
This is always sql#demoteMasterConfiguration
.
mysql_replica_configuration: Option<DemoteMasterMySqlReplicaConfiguration>
MySQL specific configuration when replicating from a MySQL on-premises
primary instance. Replication configuration information such as the
username, password, certificates, and keys are not stored in the instance
metadata. The configuration information is used only to set up the
replication connection and is stored by MySQL in a file named
master.info
in the data directory.
Implementations§
Source§impl DemoteMasterConfiguration
impl DemoteMasterConfiguration
pub fn new() -> Self
Sourcepub fn set_mysql_replica_configuration<T>(self, v: T) -> Selfwhere
T: Into<DemoteMasterMySqlReplicaConfiguration>,
pub fn set_mysql_replica_configuration<T>(self, v: T) -> Selfwhere
T: Into<DemoteMasterMySqlReplicaConfiguration>,
Sets the value of mysql_replica_configuration.
Sourcepub fn set_or_clear_mysql_replica_configuration<T>(self, v: Option<T>) -> Selfwhere
T: Into<DemoteMasterMySqlReplicaConfiguration>,
pub fn set_or_clear_mysql_replica_configuration<T>(self, v: Option<T>) -> Selfwhere
T: Into<DemoteMasterMySqlReplicaConfiguration>,
Sets or clears the value of mysql_replica_configuration.
Trait Implementations§
Source§impl Clone for DemoteMasterConfiguration
impl Clone for DemoteMasterConfiguration
Source§fn clone(&self) -> DemoteMasterConfiguration
fn clone(&self) -> DemoteMasterConfiguration
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 DemoteMasterConfiguration
impl Debug for DemoteMasterConfiguration
Source§impl Default for DemoteMasterConfiguration
impl Default for DemoteMasterConfiguration
Source§fn default() -> DemoteMasterConfiguration
fn default() -> DemoteMasterConfiguration
Returns the “default value” for a type. Read more
Source§impl Message for DemoteMasterConfiguration
impl Message for DemoteMasterConfiguration
impl StructuralPartialEq for DemoteMasterConfiguration
Auto Trait Implementations§
impl Freeze for DemoteMasterConfiguration
impl RefUnwindSafe for DemoteMasterConfiguration
impl Send for DemoteMasterConfiguration
impl Sync for DemoteMasterConfiguration
impl Unpin for DemoteMasterConfiguration
impl UnwindSafe for DemoteMasterConfiguration
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