pub enum FunctionResult {
V0(FunctionResultV0),
V1(FunctionResultV1),
}
Variants§
Implementations§
§impl FunctionResult
impl FunctionResult
pub fn is_solana(&self) -> bool
pub fn is_evm(&self) -> bool
pub fn is_starknet(&self) -> bool
pub fn error_code(&self) -> u8
pub fn set_error_code(&mut self, error_code: u8)
pub fn is_err(&self) -> bool
pub fn version(&self) -> u32
pub fn fn_key(&self) -> Result<Vec<u8>, SbError>
pub fn chain_result_info(&self) -> Result<ChainResultInfo, SbError>
pub fn quote_bytes(&self) -> &[u8] ⓘ
pub fn quote(&self) -> Result<Quote<'_>, SbError>
pub fn signer(&self) -> &[u8] ⓘ
pub fn to_string(&self) -> Result<String, SbError>
pub fn hex_encode(&self) -> String
pub fn emit_hex(&self)
pub fn emit_base64(&self)
pub fn emit(&self)
pub fn decode(s: &str) -> Result<FunctionResult, SbError>
Trait Implementations§
§impl Clone for FunctionResult
impl Clone for FunctionResult
§fn clone(&self) -> FunctionResult
fn clone(&self) -> FunctionResult
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 FunctionResult
impl Debug for FunctionResult
§impl Default for FunctionResult
impl Default for FunctionResult
§fn default() -> FunctionResult
fn default() -> FunctionResult
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for FunctionResult
impl<'de> Deserialize<'de> for FunctionResult
§fn deserialize<__D>(
__deserializer: __D
) -> Result<FunctionResult, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<FunctionResult, <__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 FromHex for FunctionResult
impl FromHex for FunctionResult
§impl FromStr for FunctionResult
impl FromStr for FunctionResult
§impl PartialEq for FunctionResult
impl PartialEq for FunctionResult
§fn eq(&self, other: &FunctionResult) -> bool
fn eq(&self, other: &FunctionResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl Serialize for FunctionResult
impl Serialize for FunctionResult
§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 TryFrom<Vec<u8>> for FunctionResult
impl TryFrom<Vec<u8>> for FunctionResult
impl StructuralPartialEq for FunctionResult
Auto Trait Implementations§
impl RefUnwindSafe for FunctionResult
impl Send for FunctionResult
impl Sync for FunctionResult
impl Unpin for FunctionResult
impl UnwindSafe for FunctionResult
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