pub struct FunctionResultV0 {
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: ChainResultInfo,
pub error_code: u8,
}
Expand description
The schema of the output data that will be sent to the quote verification sidecar.
Fields§
§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: ChainResultInfo
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 FunctionResultV0
impl Clone for FunctionResultV0
source§fn clone(&self) -> FunctionResultV0
fn clone(&self) -> FunctionResultV0
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 FunctionResultV0
impl Debug for FunctionResultV0
source§impl Default for FunctionResultV0
impl Default for FunctionResultV0
source§fn default() -> FunctionResultV0
fn default() -> FunctionResultV0
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for FunctionResultV0
impl<'de> Deserialize<'de> for FunctionResultV0
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 PartialEq for FunctionResultV0
impl PartialEq for FunctionResultV0
source§fn eq(&self, other: &FunctionResultV0) -> bool
fn eq(&self, other: &FunctionResultV0) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for FunctionResultV0
impl Serialize for FunctionResultV0
impl StructuralPartialEq for FunctionResultV0
Auto Trait Implementations§
impl RefUnwindSafe for FunctionResultV0
impl Send for FunctionResultV0
impl Sync for FunctionResultV0
impl Unpin for FunctionResultV0
impl UnwindSafe for FunctionResultV0
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