pub struct PostgresClusterBuilder { /* private fields */ }Implementations§
Source§impl PostgresClusterBuilder
impl PostgresClusterBuilder
pub fn with_host(self, host: impl Into<String>) -> Self
pub fn with_port(self, port: u16) -> Self
pub fn with_user(self, user: impl Into<String>) -> Self
pub fn with_password(self, password: impl Into<String>) -> Self
pub fn with_dbname(self, dbname: impl Into<Option<String>>) -> Self
pub fn with_table(self, table: impl Into<String>) -> Self
pub fn with_pool_max_size(self, pool_max_size: u32) -> Self
pub fn with_pool_min_idle(self, pool_min_idle: impl Into<Option<u32>>) -> Self
pub fn with_pool_idle_timeout( self, pool_idle_timeout: impl Into<Option<Duration>>, ) -> Self
pub fn with_heartbeat_timeout_seconds( self, heartbeat_timeout_seconds: i32, ) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PostgresClusterBuilder
impl RefUnwindSafe for PostgresClusterBuilder
impl Send for PostgresClusterBuilder
impl Sync for PostgresClusterBuilder
impl Unpin for PostgresClusterBuilder
impl UnwindSafe for PostgresClusterBuilder
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> 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