pub struct MigrationPlan { /* private fields */ }Expand description
A migration plan descriptor. This does not execute migrations.
Implementations§
Source§impl MigrationPlan
impl MigrationPlan
Sourcepub const fn new(
direction: MigrationDirection,
steps: Vec<MigrationStep>,
) -> Self
pub const fn new( direction: MigrationDirection, steps: Vec<MigrationStep>, ) -> Self
Creates a migration plan.
Sourcepub const fn direction(&self) -> MigrationDirection
pub const fn direction(&self) -> MigrationDirection
Returns the migration direction.
Sourcepub fn steps(&self) -> &[MigrationStep]
pub fn steps(&self) -> &[MigrationStep]
Returns the migration steps.
Trait Implementations§
Source§impl Clone for MigrationPlan
impl Clone for MigrationPlan
Source§fn clone(&self) -> MigrationPlan
fn clone(&self) -> MigrationPlan
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MigrationPlan
impl Debug for MigrationPlan
Source§impl PartialEq for MigrationPlan
impl PartialEq for MigrationPlan
Source§fn eq(&self, other: &MigrationPlan) -> bool
fn eq(&self, other: &MigrationPlan) -> bool
Tests for
self and other values to be equal, and is used by ==.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