Struct degen_sql::db::postgres::postgres_db::DatabaseCredentials
source · pub struct DatabaseCredentials {
pub db_name: String,
pub db_host: String,
pub db_user: String,
pub db_password: String,
}Fields§
§db_name: String§db_host: String§db_user: String§db_password: StringImplementations§
source§impl DatabaseCredentials
impl DatabaseCredentials
pub fn from_env() -> Self
pub fn build_connection_url(&self) -> String
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for DatabaseCredentials
impl Send for DatabaseCredentials
impl Sync for DatabaseCredentials
impl Unpin for DatabaseCredentials
impl UnwindSafe for DatabaseCredentials
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