Struct MigrationPlan
pub struct MigrationPlan { /* private fields */ }Expand description
A migration plan descriptor. This does not execute migrations.
Implementations§
§impl MigrationPlan
impl MigrationPlan
pub const fn new(
direction: MigrationDirection,
steps: Vec<MigrationStep>,
) -> MigrationPlan
pub const fn new( direction: MigrationDirection, steps: Vec<MigrationStep>, ) -> MigrationPlan
Creates a migration plan.
pub const fn direction(&self) -> MigrationDirection
pub const fn direction(&self) -> MigrationDirection
Returns the migration direction.
pub fn steps(&self) -> &[MigrationStep]
pub fn steps(&self) -> &[MigrationStep]
Returns the migration steps.
Trait Implementations§
§impl Clone for MigrationPlan
impl Clone for MigrationPlan
§fn clone(&self) -> MigrationPlan
fn clone(&self) -> MigrationPlan
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 more§impl Debug for MigrationPlan
impl Debug for MigrationPlan
§impl PartialEq for MigrationPlan
impl PartialEq for MigrationPlan
impl Eq for MigrationPlan
impl StructuralPartialEq for MigrationPlan
Auto Trait Implementations§
impl Freeze for MigrationPlan
impl RefUnwindSafe for MigrationPlan
impl Send for MigrationPlan
impl Sync for MigrationPlan
impl Unpin for MigrationPlan
impl UnsafeUnpin for MigrationPlan
impl UnwindSafe for MigrationPlan
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