#[non_exhaustive]pub struct MysqlSslConfig {
pub client_key: String,
pub client_key_set: bool,
pub client_certificate: String,
pub client_certificate_set: bool,
pub ca_certificate: String,
pub ca_certificate_set: bool,
/* private fields */
}
Expand description
MySQL SSL configuration information.
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.client_key: String
Optional. Input only. PEM-encoded private key associated with the Client Certificate. If this field is used then the ‘client_certificate’ and the ‘ca_certificate’ fields are mandatory.
client_key_set: bool
Output only. Indicates whether the client_key field is set.
client_certificate: String
Optional. Input only. PEM-encoded certificate that will be used by the replica to authenticate against the source database server. If this field is used then the ‘client_key’ and the ‘ca_certificate’ fields are mandatory.
client_certificate_set: bool
Output only. Indicates whether the client_certificate field is set.
ca_certificate: String
Input only. PEM-encoded certificate of the CA that signed the source database server’s certificate.
ca_certificate_set: bool
Output only. Indicates whether the ca_certificate field is set.
Implementations§
Source§impl MysqlSslConfig
impl MysqlSslConfig
pub fn new() -> Self
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_key_set<T: Into<bool>>(self, v: T) -> Self
pub fn set_client_key_set<T: Into<bool>>(self, v: T) -> Self
Sets the value of client_key_set.
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_certificate_set<T: Into<bool>>(self, v: T) -> Self
pub fn set_client_certificate_set<T: Into<bool>>(self, v: T) -> Self
Sets the value of client_certificate_set.
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_ca_certificate_set<T: Into<bool>>(self, v: T) -> Self
pub fn set_ca_certificate_set<T: Into<bool>>(self, v: T) -> Self
Sets the value of ca_certificate_set.
Trait Implementations§
Source§impl Clone for MysqlSslConfig
impl Clone for MysqlSslConfig
Source§fn clone(&self) -> MysqlSslConfig
fn clone(&self) -> MysqlSslConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more