pub struct AssetNIA {
pub asset_id: String,
pub asset_iface: AssetIface,
pub ticker: String,
pub name: 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 Non-Inflatable Asset.
Fields§
§asset_id: String
ID of the asset
asset_iface: AssetIface
Asset interface type
ticker: String
Ticker of the asset
name: String
Name 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 AssetNIA
impl<'de> Deserialize<'de> for AssetNIA
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 AssetNIA
impl PartialEq for AssetNIA
impl Eq for AssetNIA
impl StructuralEq for AssetNIA
impl StructuralPartialEq for AssetNIA
Auto Trait Implementations§
impl RefUnwindSafe for AssetNIA
impl Send for AssetNIA
impl Sync for AssetNIA
impl Unpin for AssetNIA
impl UnwindSafe for AssetNIA
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.