pub struct RecoveryRequest { /* private fields */ }Expand description
Bounded, value-redacted request for one audited recovery decision.
Implementations§
Source§impl RecoveryRequest
impl RecoveryRequest
Sourcepub fn mark_failed(
expected_version: ExecutionVersion,
reason_code: impl Into<String>,
operator_reference: impl Into<String>,
evidence_digest: [u8; 32],
failure_category: FailureCategory,
failure_id: FailureId,
) -> Result<RecoveryRequest, RecoveryRequestError>
pub fn mark_failed( expected_version: ExecutionVersion, reason_code: impl Into<String>, operator_reference: impl Into<String>, evidence_digest: [u8; 32], failure_category: FailureCategory, failure_id: FailureId, ) -> Result<RecoveryRequest, RecoveryRequestError>
Validates a request that makes an observed execution restart-eligible.
Authentication and authorization remain deployment responsibilities;
operator_reference is an opaque audit correlation, not a credential.
§Errors
Rejects empty, oversized, whitespace-padded, or control-containing reason and operator values.
Sourcepub fn abandon(
expected_version: ExecutionVersion,
reason_code: impl Into<String>,
operator_reference: impl Into<String>,
evidence_digest: [u8; 32],
) -> Result<RecoveryRequest, RecoveryRequestError>
pub fn abandon( expected_version: ExecutionVersion, reason_code: impl Into<String>, operator_reference: impl Into<String>, evidence_digest: [u8; 32], ) -> Result<RecoveryRequest, RecoveryRequestError>
Validates a request that permanently abandons the logical instance.
§Errors
Rejects empty, oversized, whitespace-padded, or control-containing reason and operator values.
Sourcepub const fn expected_version(&self) -> ExecutionVersion
pub const fn expected_version(&self) -> ExecutionVersion
Returns the observed optimistic version.
Sourcepub const fn disposition(&self) -> RecoveryDisposition
pub const fn disposition(&self) -> RecoveryDisposition
Returns the requested disposition.
Sourcepub fn reason_code(&self) -> &str
pub fn reason_code(&self) -> &str
Borrows the bounded reason code.
Sourcepub fn operator_reference(&self) -> &str
pub fn operator_reference(&self) -> &str
Borrows the opaque operator correlation.
Sourcepub const fn evidence_digest(&self) -> &[u8; 32]
pub const fn evidence_digest(&self) -> &[u8; 32]
Returns the digest of externally retained inspection evidence.
Sourcepub const fn failure(&self) -> Option<FailureSummary>
pub const fn failure(&self) -> Option<FailureSummary>
Returns the typed failure applied by a FAILED disposition.
Trait Implementations§
Source§impl Clone for RecoveryRequest
impl Clone for RecoveryRequest
Source§fn clone(&self) -> RecoveryRequest
fn clone(&self) -> RecoveryRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RecoveryRequest
impl Debug for RecoveryRequest
impl Eq for RecoveryRequest
Source§impl PartialEq for RecoveryRequest
impl PartialEq for RecoveryRequest
impl StructuralPartialEq for RecoveryRequest
Auto Trait Implementations§
impl Freeze for RecoveryRequest
impl RefUnwindSafe for RecoveryRequest
impl Send for RecoveryRequest
impl Sync for RecoveryRequest
impl Unpin for RecoveryRequest
impl UnsafeUnpin for RecoveryRequest
impl UnwindSafe for RecoveryRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more