pub struct VerifiedMigrationApplyPlan { /* private fields */ }Expand description
An opaque, deterministic, pre-I/O migration apply plan.
Implementations§
Source§impl VerifiedMigrationApplyPlan
impl VerifiedMigrationApplyPlan
Sourcepub fn applied_migrations(&self) -> &[MigrationId]
pub fn applied_migrations(&self) -> &[MigrationId]
Return every migration identity supplied as applied, in canonical order.
Sourcepub fn applied_frontier(&self) -> &[MigrationId]
pub fn applied_frontier(&self) -> &[MigrationId]
Return the maximal applied identities observed by planning.
Sourcepub fn migrations(&self) -> &[VerifiedMigrationApplyManifest]
pub fn migrations(&self) -> &[VerifiedMigrationApplyManifest]
Return manifests in deterministic execution order.
Sourcepub const fn required_capabilities(&self) -> &CapabilitySet
pub const fn required_capabilities(&self) -> &CapabilitySet
Return the exact union of capabilities required by the planned manifests.
Sourcepub const fn source_schema(&self) -> Option<&DeclaredSchema>
pub const fn source_schema(&self) -> Option<&DeclaredSchema>
Return the exact declared schema before the first planned migration, if any.
Sourcepub const fn source_state(&self) -> Option<&ManagedSchemaState>
pub const fn source_state(&self) -> Option<&ManagedSchemaState>
Return the exact managed state before the first planned migration, if any.
Sourcepub fn target_frontier(&self) -> &[MigrationId]
pub fn target_frontier(&self) -> &[MigrationId]
Return the resulting maximal applied identities.
Sourcepub const fn target_schema(&self) -> Option<&DeclaredSchema>
pub const fn target_schema(&self) -> Option<&DeclaredSchema>
Return the exact declared schema after the last planned migration, if any.
Sourcepub const fn target_state(&self) -> Option<&ManagedSchemaState>
pub const fn target_state(&self) -> Option<&ManagedSchemaState>
Return the exact managed state after the last planned migration, if any.
Report whether policy and exact approvals grant provider execution.
Trait Implementations§
Source§impl Clone for VerifiedMigrationApplyPlan
impl Clone for VerifiedMigrationApplyPlan
Source§fn clone(&self) -> VerifiedMigrationApplyPlan
fn clone(&self) -> VerifiedMigrationApplyPlan
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 VerifiedMigrationApplyPlan
impl Debug for VerifiedMigrationApplyPlan
impl Eq for VerifiedMigrationApplyPlan
impl StructuralPartialEq for VerifiedMigrationApplyPlan
Auto Trait Implementations§
impl Freeze for VerifiedMigrationApplyPlan
impl RefUnwindSafe for VerifiedMigrationApplyPlan
impl Send for VerifiedMigrationApplyPlan
impl Sync for VerifiedMigrationApplyPlan
impl Unpin for VerifiedMigrationApplyPlan
impl UnsafeUnpin for VerifiedMigrationApplyPlan
impl UnwindSafe for VerifiedMigrationApplyPlan
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