pub struct SchemaDeltaStepContract { /* private fields */ }Expand description
Context-free claims derived exactly from a trusted schema delta.
Implementations§
Source§impl SchemaDeltaStepContract
impl SchemaDeltaStepContract
Sourcepub fn new(
id: MigrationStepId,
delta: &SchemaDelta,
reverse: Option<SchemaDelta>,
) -> Result<Self, Diagnostic>
pub fn new( id: MigrationStepId, delta: &SchemaDelta, reverse: Option<SchemaDelta>, ) -> Result<Self, Diagnostic>
Derive all step claims and validate an optional exact operation-wise inverse.
Sourcepub const fn id(&self) -> &MigrationStepId
pub const fn id(&self) -> &MigrationStepId
Return the step-local identity.
Sourcepub const fn source_semantics(&self) -> &ManagedSemanticSchemaFingerprint
pub const fn source_semantics(&self) -> &ManagedSemanticSchemaFingerprint
Return the exact source managed-semantic precondition.
Sourcepub const fn target_semantics(&self) -> &ManagedSemanticSchemaFingerprint
pub const fn target_semantics(&self) -> &ManagedSemanticSchemaFingerprint
Return the exact target managed-semantic postcondition.
Sourcepub const fn required_capabilities(&self) -> &CapabilitySet
pub const fn required_capabilities(&self) -> &CapabilitySet
Return capabilities derived from the trusted delta.
Sourcepub const fn delta_fingerprint(&self) -> &SchemaDeltaFingerprint
pub const fn delta_fingerprint(&self) -> &SchemaDeltaFingerprint
Return the exact schema-delta fingerprint.
Sourcepub const fn retry(&self) -> RetryPolicy
pub const fn retry(&self) -> RetryPolicy
Return the fixed no-replay retry policy.
Sourcepub const fn recovery(&self) -> RecoveryPolicy
pub const fn recovery(&self) -> RecoveryPolicy
Return the fixed operator-required recovery policy.
Sourcepub const fn reverse(&self) -> Option<&SchemaDelta>
pub const fn reverse(&self) -> Option<&SchemaDelta>
Return the optional checked exact inverse.
Trait Implementations§
Source§impl Clone for SchemaDeltaStepContract
impl Clone for SchemaDeltaStepContract
Source§fn clone(&self) -> SchemaDeltaStepContract
fn clone(&self) -> SchemaDeltaStepContract
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 SchemaDeltaStepContract
impl Debug for SchemaDeltaStepContract
impl Eq for SchemaDeltaStepContract
Source§impl PartialEq for SchemaDeltaStepContract
impl PartialEq for SchemaDeltaStepContract
Source§impl Serialize for SchemaDeltaStepContract
impl Serialize for SchemaDeltaStepContract
impl StructuralPartialEq for SchemaDeltaStepContract
Auto Trait Implementations§
impl Freeze for SchemaDeltaStepContract
impl RefUnwindSafe for SchemaDeltaStepContract
impl Send for SchemaDeltaStepContract
impl Sync for SchemaDeltaStepContract
impl Unpin for SchemaDeltaStepContract
impl UnsafeUnpin for SchemaDeltaStepContract
impl UnwindSafe for SchemaDeltaStepContract
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