#[non_exhaustive]pub struct MySqlReplicaConfiguration {
pub dump_file_path: String,
pub username: String,
pub password: String,
pub connect_retry_interval: Option<Int32Value>,
pub master_heartbeat_period: Option<Int64Value>,
pub ca_certificate: String,
pub client_certificate: String,
pub client_key: String,
pub ssl_cipher: String,
pub verify_server_certificate: Option<BoolValue>,
pub kind: String,
/* private fields */
}
Expand description
Read-replica configuration specific to MySQL databases.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.dump_file_path: String
Path to a SQL dump file in Google Cloud Storage from which the replica instance is to be created. The URI is in the form gs://bucketName/fileName. Compressed gzip files (.gz) are also supported. Dumps have the binlog co-ordinates from which replication begins. This can be accomplished by setting –master-data to 1 when using mysqldump.
username: String
The username for the replication connection.
password: String
The password for the replication connection.
connect_retry_interval: Option<Int32Value>
Seconds to wait between connect retries. MySQL’s default is 60 seconds.
master_heartbeat_period: Option<Int64Value>
Interval in milliseconds between replication heartbeats.
ca_certificate: String
PEM representation of the trusted CA’s x509 certificate.
client_certificate: String
PEM representation of the replica’s x509 certificate.
client_key: String
PEM representation of the replica’s private key. The corresponsing public key is encoded in the client’s certificate.
ssl_cipher: String
A list of permissible ciphers to use for SSL encryption.
verify_server_certificate: Option<BoolValue>
Whether or not to check the primary instance’s Common Name value in the certificate that it sends during the SSL handshake.
kind: String
This is always sql#mysqlReplicaConfiguration
.
Implementations§
Source§impl MySqlReplicaConfiguration
impl MySqlReplicaConfiguration
pub fn new() -> Self
Sourcepub fn set_dump_file_path<T: Into<String>>(self, v: T) -> Self
pub fn set_dump_file_path<T: Into<String>>(self, v: T) -> Self
Sets the value of dump_file_path.
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_connect_retry_interval<T>(self, v: T) -> Selfwhere
T: Into<Int32Value>,
pub fn set_connect_retry_interval<T>(self, v: T) -> Selfwhere
T: Into<Int32Value>,
Sets the value of connect_retry_interval.
Sourcepub fn set_or_clear_connect_retry_interval<T>(self, v: Option<T>) -> Selfwhere
T: Into<Int32Value>,
pub fn set_or_clear_connect_retry_interval<T>(self, v: Option<T>) -> Selfwhere
T: Into<Int32Value>,
Sets or clears the value of connect_retry_interval.
Sourcepub fn set_master_heartbeat_period<T>(self, v: T) -> Selfwhere
T: Into<Int64Value>,
pub fn set_master_heartbeat_period<T>(self, v: T) -> Selfwhere
T: Into<Int64Value>,
Sets the value of master_heartbeat_period.
Sourcepub fn set_or_clear_master_heartbeat_period<T>(self, v: Option<T>) -> Selfwhere
T: Into<Int64Value>,
pub fn set_or_clear_master_heartbeat_period<T>(self, v: Option<T>) -> Selfwhere
T: Into<Int64Value>,
Sets or clears the value of master_heartbeat_period.
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.
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_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_ssl_cipher<T: Into<String>>(self, v: T) -> Self
pub fn set_ssl_cipher<T: Into<String>>(self, v: T) -> Self
Sets the value of ssl_cipher.
Sourcepub fn set_verify_server_certificate<T>(self, v: T) -> Self
pub fn set_verify_server_certificate<T>(self, v: T) -> Self
Sets the value of verify_server_certificate.
Sourcepub fn set_or_clear_verify_server_certificate<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_verify_server_certificate<T>(self, v: Option<T>) -> Self
Sets or clears the value of verify_server_certificate.
Trait Implementations§
Source§impl Clone for MySqlReplicaConfiguration
impl Clone for MySqlReplicaConfiguration
Source§fn clone(&self) -> MySqlReplicaConfiguration
fn clone(&self) -> MySqlReplicaConfiguration
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more