pub struct PriceBook { /* private fields */ }Expand description
A lookup of unit prices keyed by SkyBlock item id, assembled from market data.
Implementations§
Source§impl PriceBook
impl PriceBook
Sourcepub fn with_bazaar(self, bazaar: &Bazaar) -> Self
pub fn with_bazaar(self, bazaar: &Bazaar) -> Self
Seed unit prices from a bazaar snapshot, using each product’s instant-sell (buy-order) price. Bazaar ids are uppercased to match item ids.
Sourcepub fn with_lowest_bin(self, lowest_bin: &HashMap<String, i64>) -> Self
pub fn with_lowest_bin(self, lowest_bin: &HashMap<String, i64>) -> Self
Overlay lowest-BIN prices (keyed by item id). BIN prices only fill items that have no price yet; existing bazaar prices take precedence.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PriceBook
impl RefUnwindSafe for PriceBook
impl Send for PriceBook
impl Sync for PriceBook
impl Unpin for PriceBook
impl UnsafeUnpin for PriceBook
impl UnwindSafe for PriceBook
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