pub enum WalletActionResponse {
SwapActionResponse(SwapActionResponse),
TransferActionResponse(TransferActionResponse),
EarnDepositActionResponse(EarnDepositActionResponse),
EarnWithdrawActionResponse(EarnWithdrawActionResponse),
EarnIncentiveClaimActionResponse(EarnIncentiveClaimActionResponse),
}Expand description
Response for a wallet action, discriminated on type.
JSON schema
{
"title": "WalletActionResponse",
"description": "Response for a wallet action, discriminated on type.",
"oneOf": [
{
"$ref": "#/components/schemas/SwapActionResponse"
},
{
"$ref": "#/components/schemas/TransferActionResponse"
},
{
"$ref": "#/components/schemas/EarnDepositActionResponse"
},
{
"$ref": "#/components/schemas/EarnWithdrawActionResponse"
},
{
"$ref": "#/components/schemas/EarnIncentiveClaimActionResponse"
}
],
"x-stainless-model": "wallet_actions.wallet_action_response"
}Variants§
SwapActionResponse(SwapActionResponse)
TransferActionResponse(TransferActionResponse)
EarnDepositActionResponse(EarnDepositActionResponse)
EarnWithdrawActionResponse(EarnWithdrawActionResponse)
EarnIncentiveClaimActionResponse(EarnIncentiveClaimActionResponse)
Trait Implementations§
Source§impl Clone for WalletActionResponse
impl Clone for WalletActionResponse
Source§fn clone(&self) -> WalletActionResponse
fn clone(&self) -> WalletActionResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WalletActionResponse
impl Debug for WalletActionResponse
Source§impl<'de> Deserialize<'de> for WalletActionResponse
impl<'de> Deserialize<'de> for WalletActionResponse
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<&WalletActionResponse> for WalletActionResponse
impl From<&WalletActionResponse> for WalletActionResponse
Source§fn from(value: &WalletActionResponse) -> Self
fn from(value: &WalletActionResponse) -> Self
Converts to this type from the input type.
Source§impl From<EarnDepositActionResponse> for WalletActionResponse
impl From<EarnDepositActionResponse> for WalletActionResponse
Source§fn from(value: EarnDepositActionResponse) -> Self
fn from(value: EarnDepositActionResponse) -> Self
Converts to this type from the input type.
Source§impl From<EarnIncentiveClaimActionResponse> for WalletActionResponse
impl From<EarnIncentiveClaimActionResponse> for WalletActionResponse
Source§fn from(value: EarnIncentiveClaimActionResponse) -> Self
fn from(value: EarnIncentiveClaimActionResponse) -> Self
Converts to this type from the input type.
Source§impl From<EarnWithdrawActionResponse> for WalletActionResponse
impl From<EarnWithdrawActionResponse> for WalletActionResponse
Source§fn from(value: EarnWithdrawActionResponse) -> Self
fn from(value: EarnWithdrawActionResponse) -> Self
Converts to this type from the input type.
Source§impl From<SwapActionResponse> for WalletActionResponse
impl From<SwapActionResponse> for WalletActionResponse
Source§fn from(value: SwapActionResponse) -> Self
fn from(value: SwapActionResponse) -> Self
Converts to this type from the input type.
Source§impl From<TransferActionResponse> for WalletActionResponse
impl From<TransferActionResponse> for WalletActionResponse
Source§fn from(value: TransferActionResponse) -> Self
fn from(value: TransferActionResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WalletActionResponse
impl RefUnwindSafe for WalletActionResponse
impl Send for WalletActionResponse
impl Sync for WalletActionResponse
impl Unpin for WalletActionResponse
impl UnsafeUnpin for WalletActionResponse
impl UnwindSafe for WalletActionResponse
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