pub struct PostgresConnectionSettings {
pub host: String,
pub port: u16,
pub user: String,
pub password: String,
pub database: String,
pub options: Option<String>,
pub replication: Option<String>,
/* private fields */
}Fields§
§host: String§port: u16§user: String§password: String§database: String§options: Option<String>§replication: Option<String>Implementations§
Source§impl PostgresConnectionSettings
impl PostgresConnectionSettings
pub fn new(host: impl Into<String>) -> Self
pub fn port(self, port: u16) -> Self
pub fn user(self, user: impl Into<String>) -> Self
pub fn password(self, password: impl Into<String>) -> Self
pub fn database(self, database: impl Into<String>) -> Self
pub fn options(self, options: impl Into<String>) -> Self
pub fn replication(self, replication: impl Into<String>) -> Self
Sourcepub fn register_enum<T: PostgresEnum>(self) -> Self
pub fn register_enum<T: PostgresEnum>(self) -> Self
Register a PostgreSQL enum type for OID resolution at pool creation time.
Sourcepub fn enum_type_names(&self) -> &[&'static str]
pub fn enum_type_names(&self) -> &[&'static str]
Returns the registered enum type names.
Trait Implementations§
Source§impl Clone for PostgresConnectionSettings
impl Clone for PostgresConnectionSettings
Source§fn clone(&self) -> PostgresConnectionSettings
fn clone(&self) -> PostgresConnectionSettings
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PostgresConnectionSettings
impl RefUnwindSafe for PostgresConnectionSettings
impl Send for PostgresConnectionSettings
impl Sync for PostgresConnectionSettings
impl Unpin for PostgresConnectionSettings
impl UnsafeUnpin for PostgresConnectionSettings
impl UnwindSafe for PostgresConnectionSettings
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