pub struct PostgresConnectionOptions { /* private fields */ }Implementations§
Source§impl PostgresConnectionOptions
impl PostgresConnectionOptions
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
pub fn with_default_numeric_scale( self, default_numeric_scale: impl Into<i8>, ) -> Self
Source§impl PostgresConnectionOptions
Auto-generated by derive_getters::Getters.
impl PostgresConnectionOptions
Auto-generated by derive_getters::Getters.
Sourcepub fn username(&self) -> &String
pub fn username(&self) -> &String
Get field username from instance of PostgresConnectionOptions.
Sourcepub fn password(&self) -> &String
pub fn password(&self) -> &String
Get field password from instance of PostgresConnectionOptions.
Sourcepub fn database(&self) -> &Option<String>
pub fn database(&self) -> &Option<String>
Get field database from instance of PostgresConnectionOptions.
Sourcepub fn pool_max_size(&self) -> &usize
pub fn pool_max_size(&self) -> &usize
Get field pool_max_size from instance of PostgresConnectionOptions.
Sourcepub fn stream_chunk_size(&self) -> &usize
pub fn stream_chunk_size(&self) -> &usize
Get field stream_chunk_size from instance of PostgresConnectionOptions.
Sourcepub fn default_numeric_scale(&self) -> &i8
pub fn default_numeric_scale(&self) -> &i8
Get field default_numeric_scale from instance of PostgresConnectionOptions.
Trait Implementations§
Source§impl Clone for PostgresConnectionOptions
impl Clone for PostgresConnectionOptions
Source§fn clone(&self) -> PostgresConnectionOptions
fn clone(&self) -> PostgresConnectionOptions
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 PostgresConnectionOptions
impl Debug for PostgresConnectionOptions
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.
Auto Trait Implementations§
impl Freeze for PostgresConnectionOptions
impl RefUnwindSafe for PostgresConnectionOptions
impl Send for PostgresConnectionOptions
impl Sync for PostgresConnectionOptions
impl Unpin for PostgresConnectionOptions
impl UnwindSafe for PostgresConnectionOptions
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