pub struct V2DryRunPlan {
pub fixture: V1FixtureReport,
pub steps: Vec<&'static str>,
pub failures: Vec<SchemaVersionFailure>,
}Expand description
Read-only migration plan for a v1 store.
Fields§
§fixture: V1FixtureReportFixture state inspected by the planner.
steps: Vec<&'static str>Ordered high-level steps a real migration must execute later.
failures: Vec<SchemaVersionFailure>Precondition failures. Non-empty means a real migration must fail closed.
Implementations§
Source§impl V2DryRunPlan
impl V2DryRunPlan
Sourcepub fn is_ready(&self) -> bool
pub fn is_ready(&self) -> bool
Returns true when the dry-run preflight found no schema/version failures.
Sourcepub fn fixture_verification_transcript(
&self,
boundary_previous_v1_head_hash: impl Into<String>,
) -> V2FixtureVerificationTranscript
pub fn fixture_verification_transcript( &self, boundary_previous_v1_head_hash: impl Into<String>, ) -> V2FixtureVerificationTranscript
Build a deterministic fixture verification transcript for this plan.
Sourcepub fn fixture_verification_result_hash(
&self,
boundary_previous_v1_head_hash: impl Into<String>,
) -> String
pub fn fixture_verification_result_hash( &self, boundary_previous_v1_head_hash: impl Into<String>, ) -> String
Return the stable BLAKE3-prefixed digest for this plan’s fixture transcript.
Trait Implementations§
Source§impl Clone for V2DryRunPlan
impl Clone for V2DryRunPlan
Source§fn clone(&self) -> V2DryRunPlan
fn clone(&self) -> V2DryRunPlan
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 V2DryRunPlan
impl Debug for V2DryRunPlan
Source§impl PartialEq for V2DryRunPlan
impl PartialEq for V2DryRunPlan
Source§fn eq(&self, other: &V2DryRunPlan) -> bool
fn eq(&self, other: &V2DryRunPlan) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for V2DryRunPlan
impl StructuralPartialEq for V2DryRunPlan
Auto Trait Implementations§
impl Freeze for V2DryRunPlan
impl RefUnwindSafe for V2DryRunPlan
impl Send for V2DryRunPlan
impl Sync for V2DryRunPlan
impl Unpin for V2DryRunPlan
impl UnsafeUnpin for V2DryRunPlan
impl UnwindSafe for V2DryRunPlan
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