pub struct BazaarFlip {
pub product_id: String,
pub buy_order_price: f64,
pub sell_order_price: f64,
pub profit_per_item: f64,
pub margin: f64,
pub buy_moving_week: i64,
pub sell_moving_week: i64,
}Expand description
A candidate bazaar order flip: buy via buy order, resell via sell offer.
Fields§
§product_id: String§buy_order_price: f64Acquisition price via the top buy order.
sell_order_price: f64Disposal price via the top sell offer, before tax.
profit_per_item: f64Per-item profit after BAZAAR_TAX on the sale.
margin: f64Profit as a fraction of the acquisition price.
buy_moving_week: i64Items instant-bought from sell offers over the past week (demand).
sell_moving_week: i64Items instant-sold to buy orders over the past week (supply).
Trait Implementations§
Source§impl Clone for BazaarFlip
impl Clone for BazaarFlip
Source§fn clone(&self) -> BazaarFlip
fn clone(&self) -> BazaarFlip
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 moreSource§impl Debug for BazaarFlip
impl Debug for BazaarFlip
Source§impl PartialEq for BazaarFlip
impl PartialEq for BazaarFlip
Source§impl Serialize for BazaarFlip
impl Serialize for BazaarFlip
impl StructuralPartialEq for BazaarFlip
Auto Trait Implementations§
impl Freeze for BazaarFlip
impl RefUnwindSafe for BazaarFlip
impl Send for BazaarFlip
impl Sync for BazaarFlip
impl Unpin for BazaarFlip
impl UnsafeUnpin for BazaarFlip
impl UnwindSafe for BazaarFlip
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