pub enum WalletAsset {
EthereumAsset(WalletEthereumAsset),
SolanaAsset(WalletSolanaAsset),
}Expand description
A named asset supported across all chains.
JSON schema
{
"title": "WalletAsset",
"description": "A named asset supported across all chains.",
"oneOf": [
{
"$ref": "#/components/schemas/WalletEthereumAsset"
},
{
"$ref": "#/components/schemas/WalletSolanaAsset"
}
],
"x-stainless-model": "wallets.wallet_asset"
}Variants§
EthereumAsset(WalletEthereumAsset)
SolanaAsset(WalletSolanaAsset)
Trait Implementations§
Source§impl Clone for WalletAsset
impl Clone for WalletAsset
Source§fn clone(&self) -> WalletAsset
fn clone(&self) -> WalletAsset
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 WalletAsset
impl Debug for WalletAsset
Source§impl<'de> Deserialize<'de> for WalletAsset
impl<'de> Deserialize<'de> for WalletAsset
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 Display for WalletAsset
impl Display for WalletAsset
Source§impl From<&WalletAsset> for WalletAsset
impl From<&WalletAsset> for WalletAsset
Source§fn from(value: &WalletAsset) -> Self
fn from(value: &WalletAsset) -> Self
Converts to this type from the input type.
Source§impl From<WalletEthereumAsset> for WalletAsset
impl From<WalletEthereumAsset> for WalletAsset
Source§fn from(value: WalletEthereumAsset) -> Self
fn from(value: WalletEthereumAsset) -> Self
Converts to this type from the input type.
Source§impl From<WalletSolanaAsset> for WalletAsset
impl From<WalletSolanaAsset> for WalletAsset
Source§fn from(value: WalletSolanaAsset) -> Self
fn from(value: WalletSolanaAsset) -> Self
Converts to this type from the input type.
Source§impl FromStr for WalletAsset
impl FromStr for WalletAsset
Source§impl Serialize for WalletAsset
impl Serialize for WalletAsset
Source§impl TryFrom<&String> for WalletAsset
impl TryFrom<&String> for WalletAsset
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<&str> for WalletAsset
impl TryFrom<&str> for WalletAsset
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<String> for WalletAsset
impl TryFrom<String> for WalletAsset
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for WalletAsset
impl RefUnwindSafe for WalletAsset
impl Send for WalletAsset
impl Sync for WalletAsset
impl Unpin for WalletAsset
impl UnsafeUnpin for WalletAsset
impl UnwindSafe for WalletAsset
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