#[non_exhaustive]pub struct HlActiveAssetData {
pub coin: String,
pub leverage: Decimal,
pub max_trade_szs: Vec<Decimal>,
pub available_to_trade: Vec<Decimal>,
pub mark_px: Decimal,
}Expand description
Active asset data for a user’s position in a specific coin.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.coin: StringThe coin/asset symbol.
leverage: DecimalCurrent leverage for this asset.
max_trade_szs: Vec<Decimal>Maximum trade sizes (buy/sell).
available_to_trade: Vec<Decimal>Available to trade amounts (buy/sell).
mark_px: DecimalCurrent mark price.
Implementations§
Trait Implementations§
Source§impl Clone for HlActiveAssetData
impl Clone for HlActiveAssetData
Source§fn clone(&self) -> HlActiveAssetData
fn clone(&self) -> HlActiveAssetData
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 HlActiveAssetData
impl Debug for HlActiveAssetData
Source§impl<'de> Deserialize<'de> for HlActiveAssetData
impl<'de> Deserialize<'de> for HlActiveAssetData
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 HlActiveAssetData
impl PartialEq for HlActiveAssetData
Source§impl Serialize for HlActiveAssetData
impl Serialize for HlActiveAssetData
impl StructuralPartialEq for HlActiveAssetData
Auto Trait Implementations§
impl Freeze for HlActiveAssetData
impl RefUnwindSafe for HlActiveAssetData
impl Send for HlActiveAssetData
impl Sync for HlActiveAssetData
impl Unpin for HlActiveAssetData
impl UnsafeUnpin for HlActiveAssetData
impl UnwindSafe for HlActiveAssetData
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