Struct postgres_shared::params::ConnectParams
[−]
[src]
pub struct ConnectParams { /* fields omitted */ }
Information necessary to open a new connection to a Postgres server.
Methods
impl ConnectParams
[src]
fn builder() -> Builder
[−]
Returns a new builder.
fn host(&self) -> &Host
[−]
The target host.
fn port(&self) -> u16
[−]
The target port.
Defaults to 5432.
fn user(&self) -> Option<&User>
[−]
The user to log in as.
A user is required to open a new connection but not to cancel a query.
fn database(&self) -> Option<&str>
[−]
The database to connect to.
fn options(&self) -> &[(String, String)]
[−]
Runtime parameters to be passed to the Postgres backend.
Trait Implementations
impl Clone for ConnectParams
[src]
fn clone(&self) -> ConnectParams
[−]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[−]
Performs copy-assignment from source
. Read more
impl Debug for ConnectParams
[src]
impl IntoConnectParams for ConnectParams
[src]
fn into_connect_params(self) -> Result<ConnectParams, Box<Error + Sync + Send>>
[−]
Converts the value of self
into a ConnectParams
.