pub struct TradeGood {
pub symbol: TradeSymbol,
pub name: String,
pub description: String,
}Expand description
A good that can be traded for other goods or currency.
Fields§
§symbol: TradeSymbol§name: StringThe name of the good.
description: StringThe description of the good.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TradeGood
impl<'de> Deserialize<'de> for TradeGood
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
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 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