pub struct OrderbookUnit {
pub ask_price: Decimal,
pub bid_price: Decimal,
pub ask_size: Decimal,
pub bid_size: Decimal,
}Expand description
Individual price level in the orderbook
Fields§
§ask_price: DecimalAsk price
bid_price: DecimalBid price
ask_size: DecimalAsk size/volume
bid_size: DecimalBid size/volume
Trait Implementations§
Source§impl Clone for OrderbookUnit
impl Clone for OrderbookUnit
Source§fn clone(&self) -> OrderbookUnit
fn clone(&self) -> OrderbookUnit
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OrderbookUnit
impl Debug for OrderbookUnit
Source§impl<'de> Deserialize<'de> for OrderbookUnit
impl<'de> Deserialize<'de> for OrderbookUnit
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
Auto Trait Implementations§
impl Freeze for OrderbookUnit
impl RefUnwindSafe for OrderbookUnit
impl Send for OrderbookUnit
impl Sync for OrderbookUnit
impl Unpin for OrderbookUnit
impl UnwindSafe for OrderbookUnit
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