pub struct DirectPostgresConnectConfig {
pub host: String,
pub port: u16,
pub dbname: String,
pub username: String,
pub password: Option<String>,
pub sslmode: Option<String>,
pub connect_timeout_secs: Option<u64>,
}Expand description
Direct PostgreSQL connection settings for metadata access.
Fields§
§host: String§port: u16§dbname: String§username: String§password: Option<String>§sslmode: Option<String>§connect_timeout_secs: Option<u64>Implementations§
Source§impl DirectPostgresConnectConfig
impl DirectPostgresConnectConfig
Sourcepub fn from_profile(
profile: &DataStoreProfile,
username: impl Into<String>,
password: Option<String>,
) -> Self
pub fn from_profile( profile: &DataStoreProfile, username: impl Into<String>, password: Option<String>, ) -> Self
Builds direct metadata connection settings from a datastore profile.
Sourcepub fn safe_conninfo(&self) -> String
pub fn safe_conninfo(&self) -> String
Renders a libpq-style connection string with the password redacted.
Trait Implementations§
Source§impl Clone for DirectPostgresConnectConfig
impl Clone for DirectPostgresConnectConfig
Source§fn clone(&self) -> DirectPostgresConnectConfig
fn clone(&self) -> DirectPostgresConnectConfig
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 DirectPostgresConnectConfig
impl Debug for DirectPostgresConnectConfig
impl Eq for DirectPostgresConnectConfig
impl StructuralPartialEq for DirectPostgresConnectConfig
Auto Trait Implementations§
impl Freeze for DirectPostgresConnectConfig
impl RefUnwindSafe for DirectPostgresConnectConfig
impl Send for DirectPostgresConnectConfig
impl Sync for DirectPostgresConnectConfig
impl Unpin for DirectPostgresConnectConfig
impl UnsafeUnpin for DirectPostgresConnectConfig
impl UnwindSafe for DirectPostgresConnectConfig
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more