Struct chuchi_postgres::database::Config
source · pub struct Config { /* private fields */ }
Implementations§
source§impl Config
impl Config
pub fn from_pg_config(pg_config: PgConfig) -> Self
pub fn host(self, host: impl Into<String>) -> Self
pub fn dbname(self, dbname: impl Into<String>) -> Self
pub fn user(self, user: impl Into<String>) -> Self
pub fn password(self, password: impl Into<String>) -> Self
pub fn migration_table(self, table: impl Into<String>) -> Self
pub fn pg_config(&self) -> &PgConfig
pub fn pg_config_mut(&mut self) -> &mut PgConfig
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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
)