pub struct OrderBookEntry {
pub price: Price,
pub amount: Amount,
}Expand description
Order book entry (price level)
Fields§
§price: PricePrice level
amount: AmountTotal amount at this price level
Implementations§
Source§impl OrderBookEntry
impl OrderBookEntry
Sourcepub fn new(price: Price, amount: Amount) -> OrderBookEntry
pub fn new(price: Price, amount: Amount) -> OrderBookEntry
Create a new order book entry
Trait Implementations§
Source§impl Clone for OrderBookEntry
impl Clone for OrderBookEntry
Source§fn clone(&self) -> OrderBookEntry
fn clone(&self) -> OrderBookEntry
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 OrderBookEntry
impl Debug for OrderBookEntry
Source§impl<'de> Deserialize<'de> for OrderBookEntry
impl<'de> Deserialize<'de> for OrderBookEntry
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<OrderBookEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<OrderBookEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for OrderBookEntry
impl PartialEq for OrderBookEntry
Source§impl Serialize for OrderBookEntry
impl Serialize for OrderBookEntry
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for OrderBookEntry
Auto Trait Implementations§
impl Freeze for OrderBookEntry
impl RefUnwindSafe for OrderBookEntry
impl Send for OrderBookEntry
impl Sync for OrderBookEntry
impl Unpin for OrderBookEntry
impl UnwindSafe for OrderBookEntry
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