pub struct BazaarSpread {
pub instant_buy_price: f64,
pub instant_sell_price: f64,
}Expand description
A concise view of a single bazaar product’s order book, from the taker’s side.
Fields§
§instant_buy_price: f64Lowest asking price, i.e. what you pay to instant-buy one item.
instant_sell_price: f64Highest bid, i.e. what you receive to instant-sell one item (before tax).
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