pub struct MigrationStep { /* private fields */ }Expand description
MigrationStep
One explicit migration step represented as ordered commit row operations. Step ordering is deterministic and preserved exactly at execution time. Empty step names and empty row-op vectors are rejected by constructor.
Implementations§
Source§impl MigrationStep
impl MigrationStep
Sourcepub fn from_row_ops(
name: impl Into<String>,
row_ops: Vec<MigrationRowOp>,
) -> Result<Self, InternalError>
pub fn from_row_ops( name: impl Into<String>, row_ops: Vec<MigrationRowOp>, ) -> Result<Self, InternalError>
Build one validated migration step from public migration row-op DTOs.
Sourcepub const fn row_op_count(&self) -> usize
pub const fn row_op_count(&self) -> usize
Return the number of row operations in this step.
Trait Implementations§
Source§impl Clone for MigrationStep
impl Clone for MigrationStep
Source§fn clone(&self) -> MigrationStep
fn clone(&self) -> MigrationStep
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 moreAuto Trait Implementations§
impl Freeze for MigrationStep
impl RefUnwindSafe for MigrationStep
impl Send for MigrationStep
impl Sync for MigrationStep
impl Unpin for MigrationStep
impl UnsafeUnpin for MigrationStep
impl UnwindSafe for MigrationStep
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