pub struct EngineerContributionEventCommodityContribution {
pub commodity: Commodity,
pub quantity: u16,
pub total_quantity: u16,
}
Expand description
Contribution where the player sourced and delivered a certain commodity.
Fields§
§commodity: Commodity
The commodity that was delivered.
quantity: u16
The number of commodities that were delivered at this moment.
total_quantity: u16
The number of commodities that player has delivered to the engineer in total.
Trait Implementations§
Source§impl Clone for EngineerContributionEventCommodityContribution
impl Clone for EngineerContributionEventCommodityContribution
Source§fn clone(&self) -> EngineerContributionEventCommodityContribution
fn clone(&self) -> EngineerContributionEventCommodityContribution
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<'de> Deserialize<'de> for EngineerContributionEventCommodityContribution
impl<'de> Deserialize<'de> for EngineerContributionEventCommodityContribution
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 EngineerContributionEventCommodityContribution
impl PartialEq for EngineerContributionEventCommodityContribution
Source§fn eq(&self, other: &EngineerContributionEventCommodityContribution) -> bool
fn eq(&self, other: &EngineerContributionEventCommodityContribution) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for EngineerContributionEventCommodityContribution
Auto Trait Implementations§
impl Freeze for EngineerContributionEventCommodityContribution
impl RefUnwindSafe for EngineerContributionEventCommodityContribution
impl Send for EngineerContributionEventCommodityContribution
impl Sync for EngineerContributionEventCommodityContribution
impl Unpin for EngineerContributionEventCommodityContribution
impl UnwindSafe for EngineerContributionEventCommodityContribution
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