#[non_exhaustive]pub struct SqlServerProfile {
pub hostname: String,
pub port: i32,
pub username: String,
pub password: String,
pub database: String,
pub secret_manager_stored_password: String,
/* private fields */
}
Expand description
SQLServer 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 SQLServer connection.
port: i32
Port for the SQLServer connection, default value is 1433.
username: String
Required. Username for the SQLServer connection.
password: String
Optional. Password for the SQLServer connection. Mutually exclusive with
the secret_manager_stored_password
field.
database: String
Required. Database for the SQLServer connection.
secret_manager_stored_password: String
Optional. A reference to a Secret Manager resource name storing the
SQLServer connection password. Mutually exclusive with the password
field.
Implementations§
Source§impl SqlServerProfile
impl SqlServerProfile
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_database<T: Into<String>>(self, v: T) -> Self
pub fn set_database<T: Into<String>>(self, v: T) -> Self
Sets the value of database.
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 SqlServerProfile
impl Clone for SqlServerProfile
Source§fn clone(&self) -> SqlServerProfile
fn clone(&self) -> SqlServerProfile
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 SqlServerProfile
impl Debug for SqlServerProfile
Source§impl Default for SqlServerProfile
impl Default for SqlServerProfile
Source§fn default() -> SqlServerProfile
fn default() -> SqlServerProfile
Returns the “default value” for a type. Read more
Source§impl Message for SqlServerProfile
impl Message for SqlServerProfile
Source§impl PartialEq for SqlServerProfile
impl PartialEq for SqlServerProfile
impl StructuralPartialEq for SqlServerProfile
Auto Trait Implementations§
impl Freeze for SqlServerProfile
impl RefUnwindSafe for SqlServerProfile
impl Send for SqlServerProfile
impl Sync for SqlServerProfile
impl Unpin for SqlServerProfile
impl UnwindSafe for SqlServerProfile
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