pub struct MigrationDefaults {
pub migration_type: DefaultMigrationType,
pub migration_versioning: DefaultVersioning,
}Fields§
§migration_type: DefaultMigrationTypeSpecify the default type of migration that sqlx migrate add should create by default.
§Example: Use Reversible Migrations by Default
sqlx.toml:
[migrate.defaults]
migration-type = "reversible"migration_versioning: DefaultVersioningSpecify the default scheme that sqlx migrate add should use for version integers.
§Example: Use Sequential Versioning by Default
sqlx.toml:
[migrate.defaults]
migration-versioning = "sequential"Trait Implementations§
Source§impl Debug for MigrationDefaults
impl Debug for MigrationDefaults
Source§impl Default for MigrationDefaults
impl Default for MigrationDefaults
Source§fn default() -> MigrationDefaults
fn default() -> MigrationDefaults
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MigrationDefaults
impl RefUnwindSafe for MigrationDefaults
impl Send for MigrationDefaults
impl Sync for MigrationDefaults
impl Unpin for MigrationDefaults
impl UnwindSafe for MigrationDefaults
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more