pub struct MigrationDefaults {
pub migration_type: DefaultMigrationType,
pub migration_versioning: DefaultVersioning,
}Available on crate feature
_unstable-docs only.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