pub struct RegisteredCryptoAsset {
pub id: AssetId,
pub parent_id: Option<AssetId>,
pub asset: CryptoAsset,
pub fee_to: Option<WalletRegisterId>,
pub registered_height: BlockHeight,
}Expand description
Registered crypto asset
Fields§
§id: AssetId§parent_id: Option<AssetId>Specify the parent asset ID
asset: CryptoAsset§fee_to: Option<WalletRegisterId>Fee to Withdrawal fee to
registered_height: BlockHeightTrait Implementations§
Source§impl Clone for RegisteredCryptoAsset
impl Clone for RegisteredCryptoAsset
Source§fn clone(&self) -> RegisteredCryptoAsset
fn clone(&self) -> RegisteredCryptoAsset
Returns a copy 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 RegisteredCryptoAsset
impl Debug for RegisteredCryptoAsset
Source§impl<'de> Deserialize<'de> for RegisteredCryptoAsset
impl<'de> Deserialize<'de> for RegisteredCryptoAsset
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<CandidRegisteredCryptoAsset> for RegisteredCryptoAsset
impl From<CandidRegisteredCryptoAsset> for RegisteredCryptoAsset
Source§fn from(candid_registered_crypto_asset: CandidRegisteredCryptoAsset) -> Self
fn from(candid_registered_crypto_asset: CandidRegisteredCryptoAsset) -> Self
Converts to this type from the input type.
Source§impl From<RegisteredCryptoAsset> for CandidRegisteredCryptoAsset
impl From<RegisteredCryptoAsset> for CandidRegisteredCryptoAsset
Source§fn from(registered_crypto_asset: RegisteredCryptoAsset) -> Self
fn from(registered_crypto_asset: RegisteredCryptoAsset) -> Self
Converts to this type from the input type.
Source§impl Hash for RegisteredCryptoAsset
impl Hash for RegisteredCryptoAsset
Source§impl PartialEq for RegisteredCryptoAsset
impl PartialEq for RegisteredCryptoAsset
Source§impl Serialize for RegisteredCryptoAsset
impl Serialize for RegisteredCryptoAsset
Source§impl Storable for RegisteredCryptoAsset
impl Storable for RegisteredCryptoAsset
Source§fn from_bytes(bytes: Cow<'_, [u8]>) -> Self
fn from_bytes(bytes: Cow<'_, [u8]>) -> Self
Converts bytes into an element.
Source§fn to_bytes_checked(&self) -> Cow<'_, [u8]>
fn to_bytes_checked(&self) -> Cow<'_, [u8]>
Like
to_bytes, but includes additional checks to ensure the element’s serialized bytes
are within the element’s bounds.impl Eq for RegisteredCryptoAsset
impl StructuralPartialEq for RegisteredCryptoAsset
Auto Trait Implementations§
impl Freeze for RegisteredCryptoAsset
impl RefUnwindSafe for RegisteredCryptoAsset
impl Send for RegisteredCryptoAsset
impl Sync for RegisteredCryptoAsset
impl Unpin for RegisteredCryptoAsset
impl UnwindSafe for RegisteredCryptoAsset
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