pub struct CryptoAsset {
pub chain: Chain,
pub type: TokenType,
pub address: String,
}Expand description
crypto asset
Fields§
§chain: ChainSpecify the blockchain
type: TokenTypeSpecify the type of token
address: StringSpecify the address of the asset
Trait Implementations§
Source§impl Clone for CryptoAsset
impl Clone for CryptoAsset
Source§fn clone(&self) -> CryptoAsset
fn clone(&self) -> CryptoAsset
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 CryptoAsset
impl Debug for CryptoAsset
Source§impl<'de> Deserialize<'de> for CryptoAsset
impl<'de> Deserialize<'de> for CryptoAsset
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<CandidCryptoAsset> for CryptoAsset
impl From<CandidCryptoAsset> for CryptoAsset
Source§fn from(candid_crypto_asset: CandidCryptoAsset) -> Self
fn from(candid_crypto_asset: CandidCryptoAsset) -> Self
Converts to this type from the input type.
Source§impl From<CryptoAsset> for CandidCryptoAsset
impl From<CryptoAsset> for CandidCryptoAsset
Source§fn from(crypto_asset: CryptoAsset) -> Self
fn from(crypto_asset: CryptoAsset) -> Self
Converts to this type from the input type.
Source§impl Hash for CryptoAsset
impl Hash for CryptoAsset
Source§impl Ord for CryptoAsset
impl Ord for CryptoAsset
Source§fn cmp(&self, other: &CryptoAsset) -> Ordering
fn cmp(&self, other: &CryptoAsset) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CryptoAsset
impl PartialEq for CryptoAsset
Source§impl PartialOrd for CryptoAsset
impl PartialOrd for CryptoAsset
Source§impl Serialize for CryptoAsset
impl Serialize for CryptoAsset
Source§impl Storable for CryptoAsset
impl Storable for CryptoAsset
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.Source§impl TryFrom<&[u8]> for CryptoAsset
impl TryFrom<&[u8]> for CryptoAsset
impl Eq for CryptoAsset
impl StructuralPartialEq for CryptoAsset
Auto Trait Implementations§
impl Freeze for CryptoAsset
impl RefUnwindSafe for CryptoAsset
impl Send for CryptoAsset
impl Sync for CryptoAsset
impl Unpin for CryptoAsset
impl UnwindSafe for CryptoAsset
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