pub struct AssetCFA {
pub asset_id: String,
pub asset_iface: AssetIface,
pub name: String,
pub description: Option<String>,
pub precision: u8,
pub issued_supply: u64,
pub timestamp: i64,
pub added_at: i64,
pub balance: Balance,
pub media: Option<Media>,
}
Expand description
A Collectible Fungible Asset.
Fields§
§asset_id: String
ID of the asset
asset_iface: AssetIface
Asset interface type
name: String
Name of the asset
description: Option<String>
Description of the asset
precision: u8
Precision, also known as divisibility, of the asset
issued_supply: u64
Total issued amount
timestamp: i64
Timestamp of asset genesis
added_at: i64
Timestamp of asset import
balance: Balance
Current balance of the asset
media: Option<Media>
Asset media attachment
Trait Implementations§
source§impl<'de> Deserialize<'de> for AssetCFA
impl<'de> Deserialize<'de> for AssetCFA
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 PartialEq for AssetCFA
impl PartialEq for AssetCFA
impl Eq for AssetCFA
impl StructuralEq for AssetCFA
impl StructuralPartialEq for AssetCFA
Auto Trait Implementations§
impl RefUnwindSafe for AssetCFA
impl Send for AssetCFA
impl Sync for AssetCFA
impl Unpin for AssetCFA
impl UnwindSafe for AssetCFA
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.