Struct postgresql_commands::pg_config::PgConfigBuilder
source · pub struct PgConfigBuilder { /* private fields */ }
Expand description
pg_config provides information about the installed version of PostgreSQL.
Implementations§
source§impl PgConfigBuilder
impl PgConfigBuilder
sourcepub fn new() -> Self
pub fn new() -> Self
Create a new PgConfigBuilder
sourcepub fn from(settings: &dyn Settings) -> Self
pub fn from(settings: &dyn Settings) -> Self
Create a new PgConfigBuilder from Settings
sourcepub fn program_dir<P: Into<PathBuf>>(self, path: P) -> Self
pub fn program_dir<P: Into<PathBuf>>(self, path: P) -> Self
Location of the program binary
sourcepub fn includedir<S: AsRef<OsStr>>(self, includedir: S) -> Self
pub fn includedir<S: AsRef<OsStr>>(self, includedir: S) -> Self
Set the includedir
sourcepub fn pkgincludedir<S: AsRef<OsStr>>(self, pkgincludedir: S) -> Self
pub fn pkgincludedir<S: AsRef<OsStr>>(self, pkgincludedir: S) -> Self
Set the pkgincludedir
sourcepub fn includedir_server<S: AsRef<OsStr>>(self, includedir_server: S) -> Self
pub fn includedir_server<S: AsRef<OsStr>>(self, includedir_server: S) -> Self
Set the includedir_server
Set the sharedir
sourcepub fn sysconfdir<S: AsRef<OsStr>>(self, sysconfdir: S) -> Self
pub fn sysconfdir<S: AsRef<OsStr>>(self, sysconfdir: S) -> Self
Set the sysconfdir
sourcepub fn ldflags_ex(self) -> Self
pub fn ldflags_ex(self) -> Self
Set the ldflags_ex flag
sourcepub fn ldflags_sl(self) -> Self
pub fn ldflags_sl(self) -> Self
Set the ldflags_sl flag
Trait Implementations§
source§impl Clone for PgConfigBuilder
impl Clone for PgConfigBuilder
source§fn clone(&self) -> PgConfigBuilder
fn clone(&self) -> PgConfigBuilder
Returns a copy 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 CommandBuilder for PgConfigBuilder
impl CommandBuilder for PgConfigBuilder
source§fn get_program(&self) -> &'static OsStr
fn get_program(&self) -> &'static OsStr
Get the program name
source§fn get_program_dir(&self) -> &Option<PathBuf>
fn get_program_dir(&self) -> &Option<PathBuf>
Location of the program binary
source§fn get_program_file(&self) -> PathBuf
fn get_program_file(&self) -> PathBuf
Fully qualified path to the program binary
source§impl Debug for PgConfigBuilder
impl Debug for PgConfigBuilder
source§impl Default for PgConfigBuilder
impl Default for PgConfigBuilder
source§fn default() -> PgConfigBuilder
fn default() -> PgConfigBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PgConfigBuilder
impl RefUnwindSafe for PgConfigBuilder
impl Send for PgConfigBuilder
impl Sync for PgConfigBuilder
impl Unpin for PgConfigBuilder
impl UnwindSafe for PgConfigBuilder
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