pub struct MigrationPlan { /* private fields */ }Expand description
MigrationPlan
Explicit, ordered migration contract composed of named row-op steps. The plan id is stable caller-owned metadata for observability and retries. The plan version is caller-owned monotonic metadata for upgrade safety. Steps are executed sequentially in insertion order and never reordered.
Implementations§
Source§impl MigrationPlan
impl MigrationPlan
Sourcepub fn new(
id: impl Into<String>,
version: u64,
steps: Vec<MigrationStep>,
) -> Result<Self, InternalError>
pub fn new( id: impl Into<String>, version: u64, steps: Vec<MigrationStep>, ) -> Result<Self, InternalError>
Build one validated migration plan.
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 · 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 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