pub struct MysqlConnectionOptions { /* private fields */ }
Implementations§
Source§impl MysqlConnectionOptions
impl MysqlConnectionOptions
pub fn with_host(self, host: impl Into<String>) -> Self
pub fn with_port(self, port: impl Into<u16>) -> Self
pub fn with_username(self, username: impl Into<String>) -> Self
pub fn with_password(self, password: impl Into<String>) -> Self
pub fn with_database(self, database: impl Into<Option<String>>) -> Self
pub fn with_pool_max_size(self, pool_max_size: impl Into<usize>) -> Self
pub fn with_stream_chunk_size(self, stream_chunk_size: impl Into<usize>) -> Self
Source§impl MysqlConnectionOptions
Auto-generated by derive_getters::Getters
.
impl MysqlConnectionOptions
Auto-generated by derive_getters::Getters
.
Sourcepub fn database(&self) -> &Option<String>
pub fn database(&self) -> &Option<String>
Get field database
from instance of MysqlConnectionOptions
.
Sourcepub fn pool_max_size(&self) -> &usize
pub fn pool_max_size(&self) -> &usize
Get field pool_max_size
from instance of MysqlConnectionOptions
.
Sourcepub fn stream_chunk_size(&self) -> &usize
pub fn stream_chunk_size(&self) -> &usize
Get field stream_chunk_size
from instance of MysqlConnectionOptions
.
Trait Implementations§
Source§impl Clone for MysqlConnectionOptions
impl Clone for MysqlConnectionOptions
Source§fn clone(&self) -> MysqlConnectionOptions
fn clone(&self) -> MysqlConnectionOptions
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 MysqlConnectionOptions
impl Debug for MysqlConnectionOptions
Source§impl From<MysqlConnectionOptions> for ConnectionOptions
impl From<MysqlConnectionOptions> for ConnectionOptions
Source§fn from(options: MysqlConnectionOptions) -> Self
fn from(options: MysqlConnectionOptions) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MysqlConnectionOptions
impl RefUnwindSafe for MysqlConnectionOptions
impl Send for MysqlConnectionOptions
impl Sync for MysqlConnectionOptions
impl Unpin for MysqlConnectionOptions
impl UnwindSafe for MysqlConnectionOptions
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