pub struct BazaarSpread {
pub buy_order_price: f64,
pub sell_order_price: f64,
}Expand description
A concise view of a single bazaar product’s order book.
Fields§
§buy_order_price: f64Highest price a buy order is currently offering (instant-sell price).
sell_order_price: f64Lowest price a sell order is currently asking (instant-buy price).
Implementations§
Trait Implementations§
Source§impl Clone for BazaarSpread
impl Clone for BazaarSpread
Source§fn clone(&self) -> BazaarSpread
fn clone(&self) -> BazaarSpread
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BazaarSpread
Source§impl Debug for BazaarSpread
impl Debug for BazaarSpread
Source§impl PartialEq for BazaarSpread
impl PartialEq for BazaarSpread
Source§impl Serialize for BazaarSpread
impl Serialize for BazaarSpread
impl StructuralPartialEq for BazaarSpread
Auto Trait Implementations§
impl Freeze for BazaarSpread
impl RefUnwindSafe for BazaarSpread
impl Send for BazaarSpread
impl Sync for BazaarSpread
impl Unpin for BazaarSpread
impl UnsafeUnpin for BazaarSpread
impl UnwindSafe for BazaarSpread
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