pub struct AssetInfo {
pub asset_class: String,
pub alt_name: String,
pub decimals: i64,
pub display_decimals: i64,
pub collateral_value: Option<f64>,
pub status: AssetStatus,
}
Expand description
Asset details (e.g. for ETH, USDC, BTC, etc)
Fields§
§asset_class: String
§alt_name: String
§decimals: i64
§display_decimals: i64
§collateral_value: Option<f64>
§status: AssetStatus
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AssetInfo
impl<'de> Deserialize<'de> for AssetInfo
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
impl StructuralPartialEq for AssetInfo
Auto Trait Implementations§
impl Freeze for AssetInfo
impl RefUnwindSafe for AssetInfo
impl Send for AssetInfo
impl Sync for AssetInfo
impl Unpin for AssetInfo
impl UnwindSafe for AssetInfo
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