pub enum PostgresCreds {
Url(Box<str>),
Host {
host: Box<str>,
port: u16,
user: Option<Box<str>>,
password: Option<Box<str>>,
database: Box<str>,
ssl: bool,
},
}Expand description
PostgreSQL credentials
Variants§
Implementations§
Source§impl PostgresCreds
impl PostgresCreds
Sourcepub fn connection_url(&self) -> String
pub fn connection_url(&self) -> String
Build connection URL
Trait Implementations§
Source§impl Clone for PostgresCreds
impl Clone for PostgresCreds
Source§fn clone(&self) -> PostgresCreds
fn clone(&self) -> PostgresCreds
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 moreAuto Trait Implementations§
impl Freeze for PostgresCreds
impl RefUnwindSafe for PostgresCreds
impl Send for PostgresCreds
impl Sync for PostgresCreds
impl Unpin for PostgresCreds
impl UnwindSafe for PostgresCreds
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