pub struct TradeGood {
pub template: usize,
pub material: Option<usize>,
pub value: ValueDescription,
}Expand description
A good with a ValueDescription: its template, its raw material (none for seeds and livestock) and value.
Fields§
§template: usizeThe template.
material: Option<usize>The raw material; none for seeds and livestock.
value: ValueDescriptionThe value.
Trait Implementations§
impl Eq for TradeGood
impl StructuralPartialEq for TradeGood
Auto Trait Implementations§
impl Freeze for TradeGood
impl RefUnwindSafe for TradeGood
impl Send for TradeGood
impl Sync for TradeGood
impl Unpin for TradeGood
impl UnsafeUnpin for TradeGood
impl UnwindSafe for TradeGood
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