Enum migrate_core::MigrationsSelection [−][src]
pub enum MigrationsSelection<'a> {
Up {
inclusive_bound: Option<&'a str>,
},
Down {
inclusive_bound: &'a str,
},
}
Expand description
Selects the direction of the migration as well as the bounding migration.
Variants
Run the forward migration logic
Fields of Up
Run the reverse migration logic that cancels the actions done in
MigrationsSelection::Up
for migrations that are recorded in
migration state.
Fields of Down
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for MigrationsSelection<'a>
impl<'a> Send for MigrationsSelection<'a>
impl<'a> Sync for MigrationsSelection<'a>
impl<'a> Unpin for MigrationsSelection<'a>
impl<'a> UnwindSafe for MigrationsSelection<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more