pub struct ImageProgramReceiptV1 {
pub plan: Digest,
pub backend: Digest,
pub runtime_epoch: u64,
pub completed_stages: u16,
pub stages: Vec<ImageProgramStageReceiptV1>,
pub outputs: Vec<ImageProgramOutputReceiptV1>,
pub terminal: ImageProgramTerminalV1,
pub cleanup: ImageProgramCleanupDispositionV1,
}Expand description
Deterministic mechanical receipt for one resident image program.
Fields§
§plan: DigestExact program-plan identity.
backend: DigestExact backend build/runtime identity.
runtime_epoch: u64Runtime epoch used by native handles.
completed_stages: u16Number of completely published stages.
stages: Vec<ImageProgramStageReceiptV1>Completed stage receipts as an ordered prefix.
outputs: Vec<ImageProgramOutputReceiptV1>Completed output writes in route order.
terminal: ImageProgramTerminalV1Terminal program boundary.
cleanup: ImageProgramCleanupDispositionV1Observed cleanup outcome.
Implementations§
Source§impl ImageProgramReceiptV1
impl ImageProgramReceiptV1
Sourcepub fn validate_for(&self, plan: &ImageProgramPlanV1) -> Result<(), CoreError>
pub fn validate_for(&self, plan: &ImageProgramPlanV1) -> Result<(), CoreError>
Validates plan lineage, stage prefix, output writes, terminal position, and cleanup disposition.
§Errors
Returns the first inconsistency with the exact program.
Sourcepub fn digest_for(&self, plan: &ImageProgramPlanV1) -> Result<Digest, CoreError>
pub fn digest_for(&self, plan: &ImageProgramPlanV1) -> Result<Digest, CoreError>
Returns the identity of this exact deterministic receipt.
§Errors
Returns a validation or deterministic serialization error.
Trait Implementations§
Source§impl Clone for ImageProgramReceiptV1
impl Clone for ImageProgramReceiptV1
Source§impl Debug for ImageProgramReceiptV1
impl Debug for ImageProgramReceiptV1
Source§impl<'de> Deserialize<'de> for ImageProgramReceiptV1
impl<'de> Deserialize<'de> for ImageProgramReceiptV1
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ImageProgramReceiptV1
Source§impl PartialEq for ImageProgramReceiptV1
impl PartialEq for ImageProgramReceiptV1
Source§impl Serialize for ImageProgramReceiptV1
impl Serialize for ImageProgramReceiptV1
impl StructuralPartialEq for ImageProgramReceiptV1
Auto Trait Implementations§
impl Freeze for ImageProgramReceiptV1
impl RefUnwindSafe for ImageProgramReceiptV1
impl Send for ImageProgramReceiptV1
impl Sync for ImageProgramReceiptV1
impl Unpin for ImageProgramReceiptV1
impl UnsafeUnpin for ImageProgramReceiptV1
impl UnwindSafe for ImageProgramReceiptV1
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