pub struct MarketEntry {Show 15 fields
pub id: u64,
pub name: Commodity,
pub name_localized: Option<String>,
pub category: CommodityCategory,
pub category_localized: Option<String>,
pub buy_price: u64,
pub sell_price: u64,
pub mean_price: u64,
pub stock_bracket: u64,
pub demand_bracket: u64,
pub stock: u64,
pub demand: u64,
pub consumer: bool,
pub producer: bool,
pub rare: bool,
}
Fields§
§id: u64
§name: Commodity
§name_localized: Option<String>
§category: CommodityCategory
§category_localized: Option<String>
§buy_price: u64
§sell_price: u64
§mean_price: u64
§stock_bracket: u64
§demand_bracket: u64
§stock: u64
§demand: u64
§consumer: bool
§producer: bool
§rare: bool
Trait Implementations§
Source§impl Clone for MarketEntry
impl Clone for MarketEntry
Source§fn clone(&self) -> MarketEntry
fn clone(&self) -> MarketEntry
Returns a copy 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 MarketEntry
impl Debug for MarketEntry
Source§impl<'de> Deserialize<'de> for MarketEntry
impl<'de> Deserialize<'de> for MarketEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MarketEntry
impl PartialEq for MarketEntry
Source§impl Serialize for MarketEntry
impl Serialize for MarketEntry
impl StructuralPartialEq for MarketEntry
Auto Trait Implementations§
impl Freeze for MarketEntry
impl RefUnwindSafe for MarketEntry
impl Send for MarketEntry
impl Sync for MarketEntry
impl Unpin for MarketEntry
impl UnwindSafe for MarketEntry
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