pub struct VerifiedMigrationHistoryBundle { /* private fields */ }Expand description
A deterministic immutable history snapshot admitted only after full replay.
Implementations§
Source§impl VerifiedMigrationHistoryBundle
impl VerifiedMigrationHistoryBundle
Sourcepub fn from_graph(graph: &MigrationHistoryGraph) -> Result<Self, Diagnostic>
pub fn from_graph(graph: &MigrationHistoryGraph) -> Result<Self, Diagnostic>
Build a bundle from one already replay-verified graph.
Sourcepub fn entries(&self) -> &[VerifiedMigrationHistoryBundleEntry]
pub fn entries(&self) -> &[VerifiedMigrationHistoryBundleEntry]
Return entries in deterministic topological order.
Sourcepub const fn fingerprint(&self) -> &Fingerprint
pub const fn fingerprint(&self) -> &Fingerprint
Return the exact bundle content fingerprint.
Sourcepub fn heads(&self) -> &[MigrationId]
pub fn heads(&self) -> &[MigrationId]
Return graph heads in canonical compound-identity order.
Sourcepub fn history_graph(&self) -> Result<MigrationHistoryGraph, Diagnostic>
pub fn history_graph(&self) -> Result<MigrationHistoryGraph, Diagnostic>
Reconstruct the verified planning graph without source files or a workspace.
Trait Implementations§
Source§impl Clone for VerifiedMigrationHistoryBundle
impl Clone for VerifiedMigrationHistoryBundle
Source§fn clone(&self) -> VerifiedMigrationHistoryBundle
fn clone(&self) -> VerifiedMigrationHistoryBundle
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 VerifiedMigrationHistoryBundle
impl StructuralPartialEq for VerifiedMigrationHistoryBundle
Auto Trait Implementations§
impl Freeze for VerifiedMigrationHistoryBundle
impl RefUnwindSafe for VerifiedMigrationHistoryBundle
impl Send for VerifiedMigrationHistoryBundle
impl Sync for VerifiedMigrationHistoryBundle
impl Unpin for VerifiedMigrationHistoryBundle
impl UnsafeUnpin for VerifiedMigrationHistoryBundle
impl UnwindSafe for VerifiedMigrationHistoryBundle
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