pub struct DatabaseSettings {
pub url: String,
pub type_: String,
}Expand description
The DatabaseSettings struct holds information about the database connection.
Fieldsยง
ยงurl: Stringยงtype_: StringTrait Implementationsยง
Sourceยงimpl Clone for DatabaseSettings
impl Clone for DatabaseSettings
Sourceยงfn clone(&self) -> DatabaseSettings
fn clone(&self) -> DatabaseSettings
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 DatabaseSettings
impl Debug for DatabaseSettings
Sourceยงimpl<'de> Deserialize<'de> for DatabaseSettings
impl<'de> Deserialize<'de> for DatabaseSettings
Sourceยงfn deserialize<__D>(
__deserializer: __D,
) -> Result<DatabaseSettings, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DatabaseSettings, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementationsยง
impl Freeze for DatabaseSettings
impl RefUnwindSafe for DatabaseSettings
impl Send for DatabaseSettings
impl Sync for DatabaseSettings
impl Unpin for DatabaseSettings
impl UnwindSafe for DatabaseSettings
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