pub enum SupportedAsset {
Simple(AssetId),
Priced(AssetPricing),
}Expand description
A supported asset entry that can be either a simple asset identifier or a pricing object with amount and expiry (TAIP-14).
Variants§
Simple(AssetId)
Simple asset identifier (CAIP-19 or DTI) for ~1:1 stablecoins.
Priced(AssetPricing)
Pricing object with asset, amount, and optional expiry.
Trait Implementations§
Source§impl Clone for SupportedAsset
impl Clone for SupportedAsset
Source§fn clone(&self) -> SupportedAsset
fn clone(&self) -> SupportedAsset
Returns a duplicate 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 SupportedAsset
impl Debug for SupportedAsset
Source§impl<'de> Deserialize<'de> for SupportedAsset
impl<'de> Deserialize<'de> for SupportedAsset
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
Auto Trait Implementations§
impl Freeze for SupportedAsset
impl RefUnwindSafe for SupportedAsset
impl Send for SupportedAsset
impl Sync for SupportedAsset
impl Unpin for SupportedAsset
impl UnsafeUnpin for SupportedAsset
impl UnwindSafe for SupportedAsset
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