#[non_exhaustive]pub struct MySqlConnectionProfile {
pub host: String,
pub port: i32,
pub username: String,
pub password: String,
pub password_set: bool,
pub ssl: Option<SslConfig>,
pub cloud_sql_id: String,
/* private fields */
}Expand description
Specifies connection parameters required specifically for 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.host: StringRequired. The IP or hostname of the source MySQL database.
port: i32Required. The network port of the source MySQL database.
username: StringRequired. The username that Database Migration Service will use to connect to the database. The value is encrypted when stored in Database Migration Service.
password: StringRequired. Input only. The password for the user that Database Migration Service will be using to connect to the database. This field is not returned on request, and the value is encrypted when stored in Database Migration Service.
password_set: boolOutput only. Indicates If this connection profile password is stored.
ssl: Option<SslConfig>SSL configuration for the destination to connect to the source database.
cloud_sql_id: StringIf the source is a Cloud SQL database, use this field to provide the Cloud SQL instance ID of the source.
Implementations§
Source§impl MySqlConnectionProfile
impl MySqlConnectionProfile
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_password_set<T: Into<bool>>(self, v: T) -> Self
pub fn set_password_set<T: Into<bool>>(self, v: T) -> Self
Sets the value of password_set.
Sourcepub fn set_or_clear_ssl<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_ssl<T>(self, v: Option<T>) -> Self
Sets or clears the value of ssl.
Sourcepub fn set_cloud_sql_id<T: Into<String>>(self, v: T) -> Self
pub fn set_cloud_sql_id<T: Into<String>>(self, v: T) -> Self
Sets the value of cloud_sql_id.
Trait Implementations§
Source§impl Clone for MySqlConnectionProfile
impl Clone for MySqlConnectionProfile
Source§fn clone(&self) -> MySqlConnectionProfile
fn clone(&self) -> MySqlConnectionProfile
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more