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: u32version 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: LegacyChainResultInfoChain specific info
error_code: u8On 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<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
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§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 ==.source§impl Serialize for LegacyFunctionResult
impl Serialize for LegacyFunctionResult
source§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 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> AbiEnumVisitor for T
impl<T> AbiEnumVisitor for T
default fn visit_for_abi( &self, _digester: &mut AbiDigester, ) -> Result<AbiDigester, DigestError>
source§impl<T> AbiEnumVisitor for T
impl<T> AbiEnumVisitor for T
default fn visit_for_abi( &self, digester: &mut AbiDigester, ) -> Result<AbiDigester, DigestError>
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more