pub struct VerifiedMigrationRollbackPlan { /* private fields */ }Expand description
A complete pre-verified rollback plan in reverse-topological order.
Implementations§
Source§impl VerifiedMigrationRollbackPlan
impl VerifiedMigrationRollbackPlan
Sourcepub fn rollbacks(&self) -> &[VerifiedMigrationRollbackManifest]
pub fn rollbacks(&self) -> &[VerifiedMigrationRollbackManifest]
Return rollback manifests in execution order.
Sourcepub fn remaining_applied(&self) -> &[MigrationId]
pub fn remaining_applied(&self) -> &[MigrationId]
Return the applied identities that survive the rollback, in order.
Sourcepub const fn source_state(&self) -> &ManagedSchemaState
pub const fn source_state(&self) -> &ManagedSchemaState
Return the exact managed state the rollback starts from.
Sourcepub const fn target_schema(&self) -> &DeclaredSchema
pub const fn target_schema(&self) -> &DeclaredSchema
Return the exact declared schema the rollback restores.
Sourcepub const fn target_state(&self) -> &ManagedSchemaState
pub const fn target_state(&self) -> &ManagedSchemaState
Return the exact managed state the rollback restores.
Return whether policy and exact approvals authorize provider execution.
Sourcepub fn applied_basis(&self) -> BTreeSet<MigrationId>
pub fn applied_basis(&self) -> BTreeSet<MigrationId>
Return the complete canonically ordered applied basis this plan assumed.
The basis is the union of the rolled-back identities and the surviving ones; execution compares it against the live applied ledger so a plan built from a stale ledger fails closed before provider I/O.
Trait Implementations§
Source§impl Clone for VerifiedMigrationRollbackPlan
impl Clone for VerifiedMigrationRollbackPlan
Source§fn clone(&self) -> VerifiedMigrationRollbackPlan
fn clone(&self) -> VerifiedMigrationRollbackPlan
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 moreimpl Eq for VerifiedMigrationRollbackPlan
impl StructuralPartialEq for VerifiedMigrationRollbackPlan
Auto Trait Implementations§
impl Freeze for VerifiedMigrationRollbackPlan
impl RefUnwindSafe for VerifiedMigrationRollbackPlan
impl Send for VerifiedMigrationRollbackPlan
impl Sync for VerifiedMigrationRollbackPlan
impl Unpin for VerifiedMigrationRollbackPlan
impl UnsafeUnpin for VerifiedMigrationRollbackPlan
impl UnwindSafe for VerifiedMigrationRollbackPlan
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