pub struct PostgresBuilder { /* private fields */ }Implementations§
Source§impl PostgresBuilder
impl PostgresBuilder
pub fn new() -> Self
Sourcepub fn with_automatic_bin_path(self) -> Result<Self>
pub fn with_automatic_bin_path(self) -> Result<Self>
Attempt to configure the builder to use the default postgres binaries. Returns an error if the binaries are not found.
Sourcepub fn with_automatic_mode(self, mode: Mode) -> Self
pub fn with_automatic_mode(self, mode: Mode) -> Self
Configures the builder with a quick networking mode.
pub fn auth(self, auth: AuthType) -> Self
pub fn bin_path(self, bin_path: impl AsRef<Path>) -> Self
pub fn data_dir(self, data_dir: PathBuf) -> Self
pub fn debug_level(self, debug_level: u8) -> Self
pub fn server_option(self, key: impl AsRef<str>, value: impl AsRef<str>) -> Self
pub fn server_options( self, server_options: impl IntoIterator<Item = (impl AsRef<str>, impl AsRef<str>)>, ) -> Self
pub fn enable_ssl(self, cert: String, key: String) -> Self
pub fn enable_unix(self) -> Self
pub fn enable_standby_of(self, port: u16) -> Self
pub fn build(self) -> Result<PostgresProcess>
Trait Implementations§
Source§impl Clone for PostgresBuilder
impl Clone for PostgresBuilder
Source§fn clone(&self) -> PostgresBuilder
fn clone(&self) -> PostgresBuilder
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 moreSource§impl Debug for PostgresBuilder
impl Debug for PostgresBuilder
Auto Trait Implementations§
impl Freeze for PostgresBuilder
impl RefUnwindSafe for PostgresBuilder
impl Send for PostgresBuilder
impl Sync for PostgresBuilder
impl Unpin for PostgresBuilder
impl UnwindSafe for PostgresBuilder
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