Struct switchboard_solana::prelude::FunctionResultV1
pub struct FunctionResultV1 {
pub quote: Vec<u8>,
pub signer: Vec<u8>,
pub signature: 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
signer: Vec<u8>
The enclave generated signer’s pubkey. This is used to verify the quote
signature: Vec<u8>
The signature of the chain_result_info signed by the enclave generated signer.
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§
§impl Clone for FunctionResultV1
impl Clone for FunctionResultV1
§fn clone(&self) -> FunctionResultV1
fn clone(&self) -> FunctionResultV1
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 FunctionResultV1
impl Debug for FunctionResultV1
§impl Default for FunctionResultV1
impl Default for FunctionResultV1
§fn default() -> FunctionResultV1
fn default() -> FunctionResultV1
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for FunctionResultV1
impl<'de> Deserialize<'de> for FunctionResultV1
§fn deserialize<__D>(
__deserializer: __D
) -> Result<FunctionResultV1, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<FunctionResultV1, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl PartialEq for FunctionResultV1
impl PartialEq for FunctionResultV1
§fn eq(&self, other: &FunctionResultV1) -> bool
fn eq(&self, other: &FunctionResultV1) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl Serialize for FunctionResultV1
impl Serialize for FunctionResultV1
§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 FunctionResultV1
Auto Trait Implementations§
impl RefUnwindSafe for FunctionResultV1
impl Send for FunctionResultV1
impl Sync for FunctionResultV1
impl Unpin for FunctionResultV1
impl UnwindSafe for FunctionResultV1
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