pub struct AssetOnchain {
pub symbol: String,
pub name: String,
pub address: Option<String>,
pub decimals: f64,
pub standard: Option<String>,
}
Fields§
§symbol: String
The asset symbol
name: String
The asset name
address: Option<String>
The asset address
decimals: f64
Number of decimals
standard: Option<String>
The asset standard
Implementations§
Source§impl AssetOnchain
impl AssetOnchain
Trait Implementations§
Source§impl Clone for AssetOnchain
impl Clone for AssetOnchain
Source§fn clone(&self) -> AssetOnchain
fn clone(&self) -> AssetOnchain
Returns a duplicate 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 AssetOnchain
impl Debug for AssetOnchain
Source§impl Default for AssetOnchain
impl Default for AssetOnchain
Source§fn default() -> AssetOnchain
fn default() -> AssetOnchain
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AssetOnchain
impl<'de> Deserialize<'de> for AssetOnchain
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 AssetOnchain
impl PartialEq for AssetOnchain
Source§impl Serialize for AssetOnchain
impl Serialize for AssetOnchain
impl StructuralPartialEq for AssetOnchain
Auto Trait Implementations§
impl Freeze for AssetOnchain
impl RefUnwindSafe for AssetOnchain
impl Send for AssetOnchain
impl Sync for AssetOnchain
impl Unpin for AssetOnchain
impl UnwindSafe for AssetOnchain
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