pub struct StructuredProjectionReceiptV1 {
pub plan: Digest,
pub compilation: Digest,
pub boundary_state: Digest,
pub attempts: Vec<StructuredAttemptReceiptV1>,
pub selected_attempt: u32,
pub final_state: Digest,
}Expand description
Terminal evidence for a projection selected after zero or more explicit cancelled/rejected attempts.
Fields§
§plan: DigestComplete projection plan identity.
compilation: DigestExact compiler execution identity.
boundary_state: DigestShared initial checkpoint identity.
attempts: Vec<StructuredAttemptReceiptV1>Ordered caller-explicit attempts.
selected_attempt: u32Selected terminal attempt.
final_state: DigestFinal selected causal-state identity.
Implementations§
Source§impl StructuredProjectionReceiptV1
impl StructuredProjectionReceiptV1
Sourcepub fn validate_for(
&self,
plan: &StructuredProjectionPlanV1,
compilation: &StructuredCompilationReceiptV1,
) -> Result<(), CoreError>
pub fn validate_for( &self, plan: &StructuredProjectionPlanV1, compilation: &StructuredCompilationReceiptV1, ) -> Result<(), CoreError>
Validates complete retry and selected-state lineage.
§Errors
Returns an error for a mismatched plan/compiler, empty/excessive attempts, noncontiguous attempt order, inconsistent boundary lineage, or a selected attempt that is not uniquely terminal.
Sourcepub fn digest_for(
&self,
plan: &StructuredProjectionPlanV1,
compilation: &StructuredCompilationReceiptV1,
) -> Result<Digest, CoreError>
pub fn digest_for( &self, plan: &StructuredProjectionPlanV1, compilation: &StructuredCompilationReceiptV1, ) -> Result<Digest, CoreError>
Returns the complete terminal projection identity.
§Errors
Returns a validation or serialization error.
Trait Implementations§
Source§impl Clone for StructuredProjectionReceiptV1
impl Clone for StructuredProjectionReceiptV1
Source§fn clone(&self) -> StructuredProjectionReceiptV1
fn clone(&self) -> StructuredProjectionReceiptV1
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<'de> Deserialize<'de> for StructuredProjectionReceiptV1
impl<'de> Deserialize<'de> for StructuredProjectionReceiptV1
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<StructuredProjectionReceiptV1, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<StructuredProjectionReceiptV1, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for StructuredProjectionReceiptV1
Source§impl Serialize for StructuredProjectionReceiptV1
impl Serialize for StructuredProjectionReceiptV1
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for StructuredProjectionReceiptV1
Auto Trait Implementations§
impl Freeze for StructuredProjectionReceiptV1
impl RefUnwindSafe for StructuredProjectionReceiptV1
impl Send for StructuredProjectionReceiptV1
impl Sync for StructuredProjectionReceiptV1
impl Unpin for StructuredProjectionReceiptV1
impl UnsafeUnpin for StructuredProjectionReceiptV1
impl UnwindSafe for StructuredProjectionReceiptV1
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