pub struct EngineContextSourceExecutionResponseV2 {
pub schema_version: u32,
pub execution: EngineContextSourceExecutionResponseV1,
pub receipt_document_json: String,
}Expand description
Opt-in v2 response: the unchanged v1 execution and exact persisted canonical JSON.
receipt_document_json.as_bytes() are the signed document bytes, not a
re-rendered object. Consumers must independently admit the signer and verify
the Ed25519 signature; neither a digest nor this validator grants trust.
Fields§
§schema_version: u32§execution: EngineContextSourceExecutionResponseV1§receipt_document_json: StringImplementations§
Source§impl EngineContextSourceExecutionResponseV2
impl EngineContextSourceExecutionResponseV2
Sourcepub fn validate(&self) -> Result<(), ValidationError>
pub fn validate(&self) -> Result<(), ValidationError>
Validate byte identity and signed-lineage joins, not signer admission.
Sourcepub fn validate_against(
&self,
request: &EngineContextSourceExecutionRequestV1,
) -> Result<(), ValidationError>
pub fn validate_against( &self, request: &EngineContextSourceExecutionRequestV1, ) -> Result<(), ValidationError>
Retain every v1 request/source/task join before admitting the document.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EngineContextSourceExecutionResponseV2
impl<'de> Deserialize<'de> for EngineContextSourceExecutionResponseV2
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 EngineContextSourceExecutionResponseV2
impl StructuralPartialEq for EngineContextSourceExecutionResponseV2
Auto Trait Implementations§
impl Forget for EngineContextSourceExecutionResponseV2
impl Freeze for EngineContextSourceExecutionResponseV2
impl Move for EngineContextSourceExecutionResponseV2
impl RefUnwindSafe for EngineContextSourceExecutionResponseV2
impl Send for EngineContextSourceExecutionResponseV2
impl Sync for EngineContextSourceExecutionResponseV2
impl Unpin for EngineContextSourceExecutionResponseV2
impl UnsafeUnpin for EngineContextSourceExecutionResponseV2
impl UnwindSafe for EngineContextSourceExecutionResponseV2
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