Struct rorm_declaration::config::DatabaseConfig
source · pub struct DatabaseConfig {
pub driver: DatabaseDriver,
pub last_migration_table_name: Option<String>,
}
Expand description
The configuration struct for database related settings
Fields
driver: DatabaseDriver
The representation of the SQL driver. Will be flattened
last_migration_table_name: Option<String>
The name of the migration table. Only used be [rorm-cli].
Trait Implementations
sourceimpl Clone for DatabaseConfig
impl Clone for DatabaseConfig
sourcefn clone(&self) -> DatabaseConfig
fn clone(&self) -> DatabaseConfig
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 DatabaseConfig
impl Debug for DatabaseConfig
sourceimpl<'de> Deserialize<'de> for DatabaseConfig
impl<'de> Deserialize<'de> for DatabaseConfig
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 DatabaseConfig
impl Serialize for DatabaseConfig
Auto Trait Implementations
impl RefUnwindSafe for DatabaseConfig
impl Send for DatabaseConfig
impl Sync for DatabaseConfig
impl Unpin for DatabaseConfig
impl UnwindSafe for DatabaseConfig
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