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§
Source§impl Debug for DatabaseCredentials
impl Debug for DatabaseCredentials
Auto Trait Implementations§
impl Freeze for DatabaseCredentials
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