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: String
Implementations§
Source§impl DatabaseCredentials
impl DatabaseCredentials
pub fn from_env() -> Self
pub fn build_connection_url(&self) -> String
Trait Implementations§
Source§impl Clone for DatabaseCredentials
impl Clone for DatabaseCredentials
Source§fn clone(&self) -> DatabaseCredentials
fn clone(&self) -> DatabaseCredentials
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 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