Struct postgresql_embedded::Settings
source · pub struct Settings {
pub releases_url: String,
pub version: VersionReq,
pub installation_dir: PathBuf,
pub password_file: PathBuf,
pub data_dir: PathBuf,
pub host: String,
pub port: u16,
pub username: String,
pub password: String,
pub temporary: bool,
pub timeout: Option<Duration>,
pub configuration: HashMap<String, String>,
}
Expand description
Database settings
Fields§
§releases_url: String
URL for the releases location of the PostgreSQL
installation archives
version: VersionReq
Version requirement of PostgreSQL
to install
installation_dir: PathBuf
PostgreSQL
installation directory
password_file: PathBuf
PostgreSQL
password file
data_dir: PathBuf
PostgreSQL
data directory
host: String
PostgreSQL
host
port: u16
PostgreSQL
port
username: String
PostgreSQL
user name
password: String
PostgreSQL
password
temporary: bool
Temporary database
timeout: Option<Duration>
Command execution Timeout
configuration: HashMap<String, String>
Server configuration options
Implementations§
Trait Implementations§
source§impl PartialEq for Settings
impl PartialEq for Settings
impl StructuralPartialEq for Settings
Auto Trait Implementations§
impl Freeze for Settings
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnwindSafe for Settings
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,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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