pub struct Startup<'a> {
pub username: Option<&'a str>,
pub database: Option<&'a str>,
pub params: &'a [(&'a str, &'a str)],
}
Available on crate feature
postgres
only.Fields§
§username: Option<&'a str>
The database user name to connect as. Required; there is no default.
database: Option<&'a str>
The database to connect to. Defaults to the user name.
params: &'a [(&'a str, &'a str)]
Additional start-up params. https://www.postgresql.org/docs/devel/runtime-config-client.html
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Startup<'a>
impl<'a> RefUnwindSafe for Startup<'a>
impl<'a> Send for Startup<'a>
impl<'a> Sync for Startup<'a>
impl<'a> Unpin for Startup<'a>
impl<'a> UnwindSafe for Startup<'a>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more