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 EngineContextSourceExecutionResponseV2where
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<ContextSelectionV1>: Freeze,
*const LeafNode<String, ContextProviderStatsV1> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, ContextProviderStatsV1)>>: Freeze,
PhantomData<String>: Freeze,
PhantomData<EvidenceRefV1>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
PhantomData<EngineContextSourceDescriptorV1>: Freeze,
PhantomData<CapabilityId>: Freeze,
PhantomData<CapabilityBindingV1>: Freeze,
PhantomData<ProtocolReference>: Freeze,
PhantomData<EngineMeasurementV1>: Freeze,
impl Move for EngineContextSourceExecutionResponseV2
impl RefUnwindSafe for EngineContextSourceExecutionResponseV2
impl Send for EngineContextSourceExecutionResponseV2
impl Sync for EngineContextSourceExecutionResponseV2
impl Unpin for EngineContextSourceExecutionResponseV2
impl UnsafeUnpin for EngineContextSourceExecutionResponseV2where
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<ContextSelectionV1>: UnsafeUnpin,
*const LeafNode<String, ContextProviderStatsV1> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, ContextProviderStatsV1)>>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<EvidenceRefV1>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
PhantomData<EngineContextSourceDescriptorV1>: UnsafeUnpin,
PhantomData<CapabilityId>: UnsafeUnpin,
PhantomData<CapabilityBindingV1>: UnsafeUnpin,
PhantomData<ProtocolReference>: UnsafeUnpin,
PhantomData<EngineMeasurementV1>: UnsafeUnpin,
impl UnwindSafe for EngineContextSourceExecutionResponseV2where
RawVecInner: UnwindSafe,
BTreeMap<String, ContextProviderStatsV1>: UnwindSafe,
BTreeMap<String, Value>: UnwindSafe,
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