Struct pleingres::ConfigFile

source ·
pub struct ConfigFile {
    pub user: String,
    pub password: String,
    pub db: String,
    pub addr: String,
    pub tcp_keepalive: Option<u32>,
    pub idle_timeout: Option<u64>,
    pub ssl: Option<SSLConfigFile>,
}
Expand description

A serializable version of Parameters, for inclusion in configuration files.

Fields

user: String

PostgreSQL user.

password: String

Password.

db: String

Database name.

addr: String

Network address of the server.

tcp_keepalive: Option<u32>

TCP keepalive interval, defaults to no keep alive (in milliseconds).

idle_timeout: Option<u64>

Time to wait before reconnecting an idle connection (in milliseconds).

ssl: Option<SSLConfigFile>

SSL parameters

Implementations

Convert a configuration file to parameters.

Trait Implementations

Returns the “default value” for a type. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.