pub struct DatabaseConnection {
pub driver: String,
pub host: String,
pub port: u16,
pub database: String,
pub username: String,
pub password: String,
pub charset: Option<String>,
pub prefix: Option<String>,
pub pool_size: Option<u32>,
}
Expand description
Individual database connection configuration
Fields§
§driver: String
§host: String
§port: u16
§database: String
§username: String
§password: String
§charset: Option<String>
§prefix: Option<String>
§pool_size: Option<u32>
Trait Implementations§
Source§impl Clone for DatabaseConnection
impl Clone for DatabaseConnection
Source§fn clone(&self) -> DatabaseConnection
fn clone(&self) -> DatabaseConnection
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 DatabaseConnection
impl Debug for DatabaseConnection
Source§impl<'de> Deserialize<'de> for DatabaseConnection
impl<'de> Deserialize<'de> for DatabaseConnection
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DatabaseConnection
impl RefUnwindSafe for DatabaseConnection
impl Send for DatabaseConnection
impl Sync for DatabaseConnection
impl Unpin for DatabaseConnection
impl UnwindSafe for DatabaseConnection
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