pub struct PgConnParts {
pub host: String,
pub port: u16,
pub dbname: Option<String>,
pub user: Option<String>,
}Expand description
Parsed fields extracted from a PostgreSQL connection string.
Obtained via parse_pg_conn_str.
Fields§
§host: StringThe host name or IP address (defaults to "localhost").
port: u16The server port (defaults to 5432).
dbname: Option<String>The target database name, if present.
user: Option<String>The login user name, if present.
Trait Implementations§
Source§impl Clone for PgConnParts
impl Clone for PgConnParts
Source§impl Debug for PgConnParts
impl Debug for PgConnParts
impl Eq for PgConnParts
Source§impl PartialEq for PgConnParts
impl PartialEq for PgConnParts
impl StructuralPartialEq for PgConnParts
Auto Trait Implementations§
impl Freeze for PgConnParts
impl RefUnwindSafe for PgConnParts
impl Send for PgConnParts
impl Sync for PgConnParts
impl Unpin for PgConnParts
impl UnsafeUnpin for PgConnParts
impl UnwindSafe for PgConnParts
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.