pub struct MssqlConnectOptions {
pub host: String,
pub port: u16,
pub username: String,
pub database: String,
pub password: Option<String>,
}
Fields§
§host: String
§port: u16
§username: String
§database: String
§password: Option<String>
Implementations§
Trait Implementations§
Source§impl Clone for MssqlConnectOptions
impl Clone for MssqlConnectOptions
Source§fn clone(&self) -> MssqlConnectOptions
fn clone(&self) -> MssqlConnectOptions
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 ConnectOptions for MssqlConnectOptions
impl ConnectOptions for MssqlConnectOptions
type Connection = MssqlConnection
Source§fn connect(&self, d: Duration) -> Result<Self::Connection, Error>where
Self::Connection: Sized,
fn connect(&self, d: Duration) -> Result<Self::Connection, Error>where
Self::Connection: Sized,
Establish a new database connection with the options specified by
self
.Source§impl Debug for MssqlConnectOptions
impl Debug for MssqlConnectOptions
Source§impl Default for MssqlConnectOptions
impl Default for MssqlConnectOptions
Auto Trait Implementations§
impl Freeze for MssqlConnectOptions
impl RefUnwindSafe for MssqlConnectOptions
impl Send for MssqlConnectOptions
impl Sync for MssqlConnectOptions
impl Unpin for MssqlConnectOptions
impl UnwindSafe for MssqlConnectOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more