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§
Source§impl Clone for LegacyFunctionResult
impl Clone for LegacyFunctionResult
Source§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 moreSource§impl Debug for LegacyFunctionResult
impl Debug for LegacyFunctionResult
Source§impl Default for LegacyFunctionResult
impl Default for LegacyFunctionResult
Source§fn default() -> LegacyFunctionResult
fn default() -> LegacyFunctionResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LegacyFunctionResult
impl<'de> Deserialize<'de> for LegacyFunctionResult
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
Source§impl From<LegacyFunctionResult> for FunctionResult
impl From<LegacyFunctionResult> for FunctionResult
Source§fn from(item: LegacyFunctionResult) -> FunctionResult
fn from(item: LegacyFunctionResult) -> FunctionResult
Converts to this type from the input type.
Source§impl PartialEq for LegacyFunctionResult
impl PartialEq for LegacyFunctionResult
Source§impl Serialize for LegacyFunctionResult
impl Serialize for LegacyFunctionResult
impl StructuralPartialEq for LegacyFunctionResult
Auto Trait Implementations§
impl Freeze for LegacyFunctionResult
impl RefUnwindSafe for LegacyFunctionResult
impl Send for LegacyFunctionResult
impl Sync for LegacyFunctionResult
impl Unpin for LegacyFunctionResult
impl UnwindSafe for LegacyFunctionResult
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