pub struct EngineOutcomeResponseV1 {
pub schema_version: u32,
pub receipt_id: Sha256Digest,
pub receipt_digest: Sha256Digest,
pub original_receipt_digest: Sha256Digest,
pub acceptance: AcceptanceState,
pub already_recorded: bool,
pub receipt_document_json: String,
}Expand description
Versioned result carrying the exact canonical successor receipt bytes.
Receipt parsing below proves canonical shape, content identity, and the requested outcome state only. It intentionally does not admit the signer; the existing HostReceiptAuthority performs that cryptographic/ledger check.
Fields§
§schema_version: u32§receipt_id: Sha256Digest§receipt_digest: Sha256Digest§original_receipt_digest: Sha256DigestDigest of the initial unknown receipt supplied in the request. This is an explicit transport join, not an independent cryptographic link.
acceptance: AcceptanceState§already_recorded: bool§receipt_document_json: StringImplementations§
Source§impl EngineOutcomeResponseV1
impl EngineOutcomeResponseV1
Sourcepub fn validate(&self) -> Result<(), ValidationError>
pub fn validate(&self) -> Result<(), ValidationError>
Validate exact canonical UTF-8 receipt bytes and response bounds.
Sourcepub fn validate_against(
&self,
request: &EngineOutcomeRequestV1,
) -> Result<(), ValidationError>
pub fn validate_against( &self, request: &EngineOutcomeRequestV1, ) -> Result<(), ValidationError>
Validate the server-owned task and planning-evidence joins available on the response wire. Signature admission and previous-receipt lineage remain host responsibilities.
Trait Implementations§
Source§impl Clone for EngineOutcomeResponseV1
impl Clone for EngineOutcomeResponseV1
Source§impl Debug for EngineOutcomeResponseV1
impl Debug for EngineOutcomeResponseV1
Source§impl<'de> Deserialize<'de> for EngineOutcomeResponseV1
impl<'de> Deserialize<'de> for EngineOutcomeResponseV1
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 EngineOutcomeResponseV1
Source§impl PartialEq for EngineOutcomeResponseV1
impl PartialEq for EngineOutcomeResponseV1
Source§impl Serialize for EngineOutcomeResponseV1
impl Serialize for EngineOutcomeResponseV1
impl StructuralPartialEq for EngineOutcomeResponseV1
Auto Trait Implementations§
impl Forget for EngineOutcomeResponseV1
impl Freeze for EngineOutcomeResponseV1
impl Move for EngineOutcomeResponseV1
impl RefUnwindSafe for EngineOutcomeResponseV1
impl Send for EngineOutcomeResponseV1
impl Sync for EngineOutcomeResponseV1
impl Unpin for EngineOutcomeResponseV1
impl UnsafeUnpin for EngineOutcomeResponseV1
impl UnwindSafe for EngineOutcomeResponseV1
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