pub struct AssetId { /* private fields */ }Expand description
CAIP-19 Asset ID implementation
An Asset ID is a string that identifies a blockchain asset and follows the format:
<chainId>/<assetNamespace>:<assetReference>
chainId: CAIP-2 Chain ID (e.g., “eip155:1” for Ethereum mainnet)assetNamespace: Protocol or standard (e.g., “erc20”)assetReference: Asset-specific identifier (e.g., token contract address)
Example: “eip155:1/erc20:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48” for USDC on Ethereum
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AssetId
impl<'de> Deserialize<'de> for AssetId
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
impl Eq for AssetId
impl StructuralPartialEq for AssetId
Auto Trait Implementations§
impl Freeze for AssetId
impl RefUnwindSafe for AssetId
impl Send for AssetId
impl Sync for AssetId
impl Unpin for AssetId
impl UnwindSafe for AssetId
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