pub struct NewAsset {
pub coin: String,
pub sz_decimals: u32,
pub oracle_px: Dec,
pub margin_table_id: u32,
}Expand description
A new asset’s listing: its coin (dex:NAME), size decimals, starting
oracle price and margin table.
Fields§
§coin: StringThe coin, dex:NAME.
sz_decimals: u32Size decimals (szDecimals): how many decimal places an order size may have.
oracle_px: DecThe starting oracle price (oraclePx).
margin_table_id: u32The id of the margin table the asset uses (marginTableId).
Implementations§
Trait Implementations§
impl Eq for NewAsset
impl StructuralPartialEq for NewAsset
Auto Trait Implementations§
impl Forget for NewAsset
impl Freeze for NewAsset
impl Move for NewAsset
impl RefUnwindSafe for NewAsset
impl Send for NewAsset
impl Sync for NewAsset
impl Unpin for NewAsset
impl UnsafeUnpin for NewAsset
impl UnwindSafe for NewAsset
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.