pub struct LegacyFunctionResult {
pub version: u32,
pub quote: Vec<u8>,
pub fn_key: Vec<u8>,
pub signer: Vec<u8>,
pub fn_request_key: Vec<u8>,
pub fn_request_hash: Vec<u8>,
pub chain_result_info: LegacyChainResultInfo,
pub error_code: u8,
}
Expand description
The schema of the output data that will be sent to the quote verification sidecar.
This implementation has been deprecated in favor of FunctionResult
.
Fields§
§version: u32
version of the output format
quote: Vec<u8>
Buffer containing the quote signing the output
fn_key: Vec<u8>
key of the executed function
signer: Vec<u8>
The oracle’s signer used to sign off on the execution
fn_request_key: Vec<u8>
If the call was a funciton request, the address of the request account.
fn_request_hash: Vec<u8>
A sha-256 hash of the parameters used in this request call.
chain_result_info: LegacyChainResultInfo
Chain specific info
error_code: u8
On function failure, users should emit with error code to avoid aggressive backoffs
Trait Implementations§
§impl Clone for LegacyFunctionResult
impl Clone for LegacyFunctionResult
§fn clone(&self) -> LegacyFunctionResult
fn clone(&self) -> LegacyFunctionResult
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for LegacyFunctionResult
impl Debug for LegacyFunctionResult
§impl Default for LegacyFunctionResult
impl Default for LegacyFunctionResult
§fn default() -> LegacyFunctionResult
fn default() -> LegacyFunctionResult
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for LegacyFunctionResult
impl<'de> Deserialize<'de> for LegacyFunctionResult
§fn deserialize<__D>(
__deserializer: __D
) -> Result<LegacyFunctionResult, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<LegacyFunctionResult, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl From<LegacyFunctionResult> for FunctionResult
impl From<LegacyFunctionResult> for FunctionResult
§fn from(item: LegacyFunctionResult) -> FunctionResult
fn from(item: LegacyFunctionResult) -> FunctionResult
Converts to this type from the input type.
§impl PartialEq for LegacyFunctionResult
impl PartialEq for LegacyFunctionResult
§fn eq(&self, other: &LegacyFunctionResult) -> bool
fn eq(&self, other: &LegacyFunctionResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl Serialize for LegacyFunctionResult
impl Serialize for LegacyFunctionResult
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for LegacyFunctionResult
Auto Trait Implementations§
impl RefUnwindSafe for LegacyFunctionResult
impl Send for LegacyFunctionResult
impl Sync for LegacyFunctionResult
impl Unpin for LegacyFunctionResult
impl UnwindSafe for LegacyFunctionResult
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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