pub struct MigrationConfig {
pub orm: Orm,
pub dialect: String,
pub migrations_dir: String,
pub schema: Option<String>,
pub table_prefix: String,
}Expand description
Migration-related settings.
Fields§
§orm: OrmORM to generate migration files for.
dialect: StringSQL dialect: “postgres”, “mysql”, or “sqlite”.
migrations_dir: StringDirectory where migration files are written.
schema: Option<String>PostgreSQL schema name (optional, default “public”).
table_prefix: StringTable name prefix (default “yauth_”).
Trait Implementations§
Source§impl Clone for MigrationConfig
impl Clone for MigrationConfig
Source§fn clone(&self) -> MigrationConfig
fn clone(&self) -> MigrationConfig
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 MigrationConfig
impl Debug for MigrationConfig
Source§impl<'de> Deserialize<'de> for MigrationConfig
impl<'de> Deserialize<'de> for MigrationConfig
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 MigrationConfig
impl RefUnwindSafe for MigrationConfig
impl Send for MigrationConfig
impl Sync for MigrationConfig
impl Unpin for MigrationConfig
impl UnsafeUnpin for MigrationConfig
impl UnwindSafe for MigrationConfig
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