pub struct RuntimeResponseV1 {
pub protocol_version: String,
pub request_digest: Sha256Digest,
pub observation: EngineObservationV1,
pub output: Option<String>,
}Expand description
Peer result bound to the whole request; receipts remain host-owned.
Fields§
§protocol_version: String§request_digest: Sha256Digest§observation: EngineObservationV1§output: Option<String>Implementations§
Source§impl RuntimeResponseV1
impl RuntimeResponseV1
Sourcepub fn validate_for(
&self,
request: &RuntimeRequestV1,
) -> Result<(), ValidationError>
pub fn validate_for( &self, request: &RuntimeRequestV1, ) -> Result<(), ValidationError>
Reuse canonical Engine lineage/status validation and check exact content.
Sourcepub fn to_bytes(
&self,
request: &RuntimeRequestV1,
) -> Result<Vec<u8>, ValidationError>
pub fn to_bytes( &self, request: &RuntimeRequestV1, ) -> Result<Vec<u8>, ValidationError>
Encode only a result that is bound to the admitted request.
Sourcepub fn from_bytes(
bytes: &[u8],
request: &RuntimeRequestV1,
now_unix_ms: u64,
) -> Result<Self, ValidationError>
pub fn from_bytes( bytes: &[u8], request: &RuntimeRequestV1, now_unix_ms: u64, ) -> Result<Self, ValidationError>
Reject late, mismatched, malformed or oversized replies before use.
Trait Implementations§
Source§impl Clone for RuntimeResponseV1
impl Clone for RuntimeResponseV1
Source§impl<'de> Deserialize<'de> for RuntimeResponseV1
impl<'de> Deserialize<'de> for RuntimeResponseV1
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 RuntimeResponseV1
Source§impl PartialEq for RuntimeResponseV1
impl PartialEq for RuntimeResponseV1
Source§impl Serialize for RuntimeResponseV1
impl Serialize for RuntimeResponseV1
impl StructuralPartialEq for RuntimeResponseV1
Auto Trait Implementations§
impl Freeze for RuntimeResponseV1
impl RefUnwindSafe for RuntimeResponseV1
impl Send for RuntimeResponseV1
impl Sync for RuntimeResponseV1
impl Unpin for RuntimeResponseV1
impl UnsafeUnpin for RuntimeResponseV1
impl UnwindSafe for RuntimeResponseV1
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