pub enum ConnectionOptions {
Postgres(PostgresConnectionOptions),
Oracle(OracleConnectionOptions),
Mysql(MysqlConnectionOptions),
Sqlite(SqliteConnectionOptions),
}
Variants§
Postgres(PostgresConnectionOptions)
Oracle(OracleConnectionOptions)
Mysql(MysqlConnectionOptions)
Sqlite(SqliteConnectionOptions)
Implementations§
Source§impl ConnectionOptions
impl ConnectionOptions
pub fn with_pool_max_size(self, pool_max_size: usize) -> Self
Trait Implementations§
Source§impl Clone for ConnectionOptions
impl Clone for ConnectionOptions
Source§fn clone(&self) -> ConnectionOptions
fn clone(&self) -> ConnectionOptions
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 ConnectionOptions
impl Debug for ConnectionOptions
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.
Source§impl From<OracleConnectionOptions> for ConnectionOptions
impl From<OracleConnectionOptions> for ConnectionOptions
Source§fn from(options: OracleConnectionOptions) -> Self
fn from(options: OracleConnectionOptions) -> Self
Converts to this type from the input type.
Source§impl From<PostgresConnectionOptions> for ConnectionOptions
impl From<PostgresConnectionOptions> for ConnectionOptions
Source§fn from(options: PostgresConnectionOptions) -> Self
fn from(options: PostgresConnectionOptions) -> Self
Converts to this type from the input type.
Source§impl From<SqliteConnectionOptions> for ConnectionOptions
impl From<SqliteConnectionOptions> for ConnectionOptions
Source§fn from(options: SqliteConnectionOptions) -> Self
fn from(options: SqliteConnectionOptions) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ConnectionOptions
impl RefUnwindSafe for ConnectionOptions
impl Send for ConnectionOptions
impl Sync for ConnectionOptions
impl Unpin for ConnectionOptions
impl UnwindSafe for ConnectionOptions
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