pub struct PostgresConfig {
pub url: String,
pub max_connections: usize,
pub min_connections: usize,
pub idle_timeout_secs: u64,
pub acquire_timeout_secs: u64,
pub connect_timeout_secs: u64,
pub test_on_acquire: bool,
pub rls: Option<RlsConfig>,
pub ssh: Option<String>,
}Expand description
[postgres] — PostgreSQL connection and pool settings.
Fields§
§url: StringConnection URL. Supports ${VAR} expansion.
max_connections: usize§min_connections: usize§idle_timeout_secs: u64§acquire_timeout_secs: u64§connect_timeout_secs: u64§test_on_acquire: bool§rls: Option<RlsConfig>RLS defaults.
ssh: Option<String>SSH tunnel host for remote connections (e.g., “sailtix” or “user@host”).
Trait Implementations§
Source§impl Clone for PostgresConfig
impl Clone for PostgresConfig
Source§fn clone(&self) -> PostgresConfig
fn clone(&self) -> PostgresConfig
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 PostgresConfig
impl Debug for PostgresConfig
Source§impl Default for PostgresConfig
impl Default for PostgresConfig
Source§impl<'de> Deserialize<'de> for PostgresConfig
impl<'de> Deserialize<'de> for PostgresConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PostgresConfig
impl RefUnwindSafe for PostgresConfig
impl Send for PostgresConfig
impl Sync for PostgresConfig
impl Unpin for PostgresConfig
impl UnwindSafe for PostgresConfig
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