#[non_exhaustive]pub struct MysqlProfile {
pub hostname: String,
pub port: i32,
pub username: String,
pub password: String,
pub ssl_config: Option<MysqlSslConfig>,
pub secret_manager_stored_password: String,
/* private fields */
}
Expand description
MySQL database profile.
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.hostname: String
Required. Hostname for the MySQL connection.
port: i32
Port for the MySQL connection, default value is 3306.
username: String
Required. Username for the MySQL connection.
password: String
Optional. Input only. Password for the MySQL connection. Mutually exclusive
with the secret_manager_stored_password
field.
ssl_config: Option<MysqlSslConfig>
SSL configuration for the MySQL connection.
secret_manager_stored_password: String
Optional. A reference to a Secret Manager resource name storing the MySQL
connection password. Mutually exclusive with the password
field.
Implementations§
Source§impl MysqlProfile
impl MysqlProfile
pub fn new() -> Self
Sourcepub fn set_hostname<T: Into<String>>(self, v: T) -> Self
pub fn set_hostname<T: Into<String>>(self, v: T) -> Self
Sets the value of hostname.
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_ssl_config<T>(self, v: T) -> Selfwhere
T: Into<MysqlSslConfig>,
pub fn set_ssl_config<T>(self, v: T) -> Selfwhere
T: Into<MysqlSslConfig>,
Sets the value of ssl_config.
Sourcepub fn set_or_clear_ssl_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<MysqlSslConfig>,
pub fn set_or_clear_ssl_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<MysqlSslConfig>,
Sets or clears the value of ssl_config.
Sourcepub fn set_secret_manager_stored_password<T: Into<String>>(self, v: T) -> Self
pub fn set_secret_manager_stored_password<T: Into<String>>(self, v: T) -> Self
Sets the value of secret_manager_stored_password.
Trait Implementations§
Source§impl Clone for MysqlProfile
impl Clone for MysqlProfile
Source§fn clone(&self) -> MysqlProfile
fn clone(&self) -> MysqlProfile
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 MysqlProfile
impl Debug for MysqlProfile
Source§impl Default for MysqlProfile
impl Default for MysqlProfile
Source§fn default() -> MysqlProfile
fn default() -> MysqlProfile
Returns the “default value” for a type. Read more
Source§impl Message for MysqlProfile
impl Message for MysqlProfile
Source§impl PartialEq for MysqlProfile
impl PartialEq for MysqlProfile
impl StructuralPartialEq for MysqlProfile
Auto Trait Implementations§
impl Freeze for MysqlProfile
impl RefUnwindSafe for MysqlProfile
impl Send for MysqlProfile
impl Sync for MysqlProfile
impl Unpin for MysqlProfile
impl UnwindSafe for MysqlProfile
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