#[non_exhaustive]pub struct DemoteMasterMySqlReplicaConfiguration {
pub kind: String,
pub username: String,
pub password: String,
pub client_key: String,
pub client_certificate: String,
pub ca_certificate: String,
/* private fields */
}
Expand description
Read-replica configuration specific to MySQL databases.
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#demoteMasterMysqlReplicaConfiguration
.
username: String
The username for the replication connection.
password: String
The password for the replication connection.
client_key: String
PEM representation of the replica’s private key. The corresponsing public key is encoded in the client’s certificate. The format of the replica’s private key can be either PKCS #1 or PKCS #8.
client_certificate: String
PEM representation of the replica’s x509 certificate.
ca_certificate: String
PEM representation of the trusted CA’s x509 certificate.
Implementations§
Source§impl DemoteMasterMySqlReplicaConfiguration
impl DemoteMasterMySqlReplicaConfiguration
pub fn new() -> Self
Sourcepub fn set_username<T: Into<String>>(self, v: T) -> Self
pub fn set_username<T: Into<String>>(self, v: T) -> Self
Sets the value of username.
Sourcepub fn set_password<T: Into<String>>(self, v: T) -> Self
pub fn set_password<T: Into<String>>(self, v: T) -> Self
Sets the value of password.
Sourcepub fn set_client_key<T: Into<String>>(self, v: T) -> Self
pub fn set_client_key<T: Into<String>>(self, v: T) -> Self
Sets the value of client_key.
Sourcepub fn set_client_certificate<T: Into<String>>(self, v: T) -> Self
pub fn set_client_certificate<T: Into<String>>(self, v: T) -> Self
Sets the value of client_certificate.
Sourcepub fn set_ca_certificate<T: Into<String>>(self, v: T) -> Self
pub fn set_ca_certificate<T: Into<String>>(self, v: T) -> Self
Sets the value of ca_certificate.
Trait Implementations§
Source§impl Clone for DemoteMasterMySqlReplicaConfiguration
impl Clone for DemoteMasterMySqlReplicaConfiguration
Source§fn clone(&self) -> DemoteMasterMySqlReplicaConfiguration
fn clone(&self) -> DemoteMasterMySqlReplicaConfiguration
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 DemoteMasterMySqlReplicaConfiguration
impl Default for DemoteMasterMySqlReplicaConfiguration
Source§fn default() -> DemoteMasterMySqlReplicaConfiguration
fn default() -> DemoteMasterMySqlReplicaConfiguration
Returns the “default value” for a type. Read more
Source§impl PartialEq for DemoteMasterMySqlReplicaConfiguration
impl PartialEq for DemoteMasterMySqlReplicaConfiguration
Source§fn eq(&self, other: &DemoteMasterMySqlReplicaConfiguration) -> bool
fn eq(&self, other: &DemoteMasterMySqlReplicaConfiguration) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for DemoteMasterMySqlReplicaConfiguration
Auto Trait Implementations§
impl Freeze for DemoteMasterMySqlReplicaConfiguration
impl RefUnwindSafe for DemoteMasterMySqlReplicaConfiguration
impl Send for DemoteMasterMySqlReplicaConfiguration
impl Sync for DemoteMasterMySqlReplicaConfiguration
impl Unpin for DemoteMasterMySqlReplicaConfiguration
impl UnwindSafe for DemoteMasterMySqlReplicaConfiguration
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