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