pub struct PostgresConnectOptions {
pub host: String,
pub port: u16,
pub username: String,
pub password: String,
pub database: String,
}Fields§
§host: String§port: u16§username: String§password: String§database: StringImplementations§
Source§impl PostgresConnectOptions
impl PostgresConnectOptions
Sourcepub const fn new(
host: String,
port: u16,
username: String,
password: String,
database: String,
) -> Self
pub const fn new( host: String, port: u16, username: String, password: String, database: String, ) -> Self
Creates a new PostgresConnectOptions instance.
pub fn connection_string(&self) -> String
pub fn default_administrator() -> Self
Trait Implementations§
Source§impl Clone for PostgresConnectOptions
impl Clone for PostgresConnectOptions
Source§fn clone(&self) -> PostgresConnectOptions
fn clone(&self) -> PostgresConnectOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PostgresConnectOptions
impl Debug for PostgresConnectOptions
Source§impl Default for PostgresConnectOptions
impl Default for PostgresConnectOptions
Source§impl From<PostgresConnectOptions> for PgConnectOptions
impl From<PostgresConnectOptions> for PgConnectOptions
Source§fn from(opt: PostgresConnectOptions) -> Self
fn from(opt: PostgresConnectOptions) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PostgresConnectOptions
impl RefUnwindSafe for PostgresConnectOptions
impl Send for PostgresConnectOptions
impl Sync for PostgresConnectOptions
impl Unpin for PostgresConnectOptions
impl UnwindSafe for PostgresConnectOptions
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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