pub struct MaterialTradeEventExchange {
pub material: Material,
pub material_localized: Option<String>,
pub category: MaterialCategory,
pub quantity: u16,
}
Expand description
An entry for a material exchange, either for paying or receiving.
Fields§
§material: Material
The material paid or received.
material_localized: Option<String>
The localized name of the material that was exchanged.
category: MaterialCategory
The category the exchanged material is a part off.
quantity: u16
The number of the given material that was either paid or received during the exchange.
Trait Implementations§
Source§impl Clone for MaterialTradeEventExchange
impl Clone for MaterialTradeEventExchange
Source§fn clone(&self) -> MaterialTradeEventExchange
fn clone(&self) -> MaterialTradeEventExchange
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 MaterialTradeEventExchange
impl Debug for MaterialTradeEventExchange
Source§impl<'de> Deserialize<'de> for MaterialTradeEventExchange
impl<'de> Deserialize<'de> for MaterialTradeEventExchange
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 MaterialTradeEventExchange
Auto Trait Implementations§
impl Freeze for MaterialTradeEventExchange
impl RefUnwindSafe for MaterialTradeEventExchange
impl Send for MaterialTradeEventExchange
impl Sync for MaterialTradeEventExchange
impl Unpin for MaterialTradeEventExchange
impl UnwindSafe for MaterialTradeEventExchange
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