pub struct IcrcTokenData {
pub token_name: String,
pub token_symbol: String,
pub decimals: u8,
pub transfer_fee: String,
pub total_supply: String,
pub minting_account_owner: Option<String>,
pub minting_account_subaccount_hex: Option<String>,
pub supported_standards: Vec<IcrcTokenStandardRow>,
pub metadata: Vec<IcrcTokenMetadataRow>,
}Expand description
IcrcTokenData
Source-layer token metadata returned by an ICRC ledger.
Fields§
§token_name: StringNative ledger token name.
token_symbol: StringNative ledger token symbol.
decimals: u8Number of decimal places in a base-unit amount.
transfer_fee: StringTransfer fee as exact base-10 base-unit text.
total_supply: StringTotal supply as exact base-10 base-unit text.
minting_account_owner: Option<String>Optional minting-account owner in principal text.
minting_account_subaccount_hex: Option<String>Optional raw minting subaccount in lowercase hexadecimal.
supported_standards: Vec<IcrcTokenStandardRow>Standards advertised by the ledger.
metadata: Vec<IcrcTokenMetadataRow>Raw ledger metadata preserving native value kinds.
Trait Implementations§
Source§impl Clone for IcrcTokenData
impl Clone for IcrcTokenData
Source§impl Debug for IcrcTokenData
impl Debug for IcrcTokenData
impl Eq for IcrcTokenData
Source§impl PartialEq for IcrcTokenData
impl PartialEq for IcrcTokenData
Source§impl Serialize for IcrcTokenData
impl Serialize for IcrcTokenData
impl StructuralPartialEq for IcrcTokenData
Auto Trait Implementations§
impl Forget for IcrcTokenData
impl Freeze for IcrcTokenData
impl RefUnwindSafe for IcrcTokenData
impl Send for IcrcTokenData
impl Sync for IcrcTokenData
impl Unpin for IcrcTokenData
impl UnsafeUnpin for IcrcTokenData
impl UnwindSafe for IcrcTokenData
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