pub enum PostgresCreds {
Url(Box<str>),
Host {
host: Box<str>,
port: u16,
user: Option<Box<str>>,
password: Option<Box<str>>,
database: Box<str>,
ssl: PostgresSslMode,
},
}Expand description
PostgreSQL credentials: a URL or host fields.
Variants§
Trait Implementations§
Source§impl Clone for PostgresCreds
impl Clone for PostgresCreds
Auto Trait Implementations§
impl Freeze for PostgresCreds
impl RefUnwindSafe for PostgresCreds
impl Send for PostgresCreds
impl Sync for PostgresCreds
impl Unpin for PostgresCreds
impl UnsafeUnpin 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