Enum rorm_declaration::config::DatabaseDriver
source · pub enum DatabaseDriver {
SQLite {
filename: String,
},
Postgres {
name: String,
host: String,
port: u16,
user: String,
password: String,
},
MySQL {
name: String,
host: String,
port: u16,
user: String,
password: String,
},
}
Expand description
The representation of all supported DB drivers
Variants
SQLite
Fields
filename: String
The filename of the sqlite database
Representation of the SQLite driver
Postgres
Fields
name: String
Name of the database
host: String
Host of the database
port: u16
Port of the database
user: String
User to connect to the database
password: String
Password to connect to the database
Representation of the Postgres driver
MySQL
Fields
name: String
Name of the database
host: String
Host of the database
port: u16
Port of the database
user: String
User to connect to the database
password: String
Password to connect to the database
Representation of the MySQL / MariaDB driver
Trait Implementations
sourceimpl Clone for DatabaseDriver
impl Clone for DatabaseDriver
sourcefn clone(&self) -> DatabaseDriver
fn clone(&self) -> DatabaseDriver
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for DatabaseDriver
impl Debug for DatabaseDriver
sourceimpl<'de> Deserialize<'de> for DatabaseDriver
impl<'de> Deserialize<'de> for DatabaseDriver
sourcefn 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
sourceimpl Serialize for DatabaseDriver
impl Serialize for DatabaseDriver
Auto Trait Implementations
impl RefUnwindSafe for DatabaseDriver
impl Send for DatabaseDriver
impl Sync for DatabaseDriver
impl Unpin for DatabaseDriver
impl UnwindSafe for DatabaseDriver
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more