pub struct MaterialDiscarded {
pub name: Material,
pub category: MaterialCategory,
pub count: u16,
}
Expand description
Fired when the player discards a material.
Fields§
§name: Material
The kind of material discarded.
category: MaterialCategory
The category the material belongs to.
count: u16
The amount of the given material discarded.
Trait Implementations§
Source§impl Clone for MaterialDiscarded
impl Clone for MaterialDiscarded
Source§fn clone(&self) -> MaterialDiscarded
fn clone(&self) -> MaterialDiscarded
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 MaterialDiscarded
impl Debug for MaterialDiscarded
Source§impl<'de> Deserialize<'de> for MaterialDiscarded
impl<'de> Deserialize<'de> for MaterialDiscarded
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 MaterialDiscarded
impl PartialEq for MaterialDiscarded
Source§impl Serialize for MaterialDiscarded
impl Serialize for MaterialDiscarded
impl StructuralPartialEq for MaterialDiscarded
Auto Trait Implementations§
impl Freeze for MaterialDiscarded
impl RefUnwindSafe for MaterialDiscarded
impl Send for MaterialDiscarded
impl Sync for MaterialDiscarded
impl Unpin for MaterialDiscarded
impl UnwindSafe for MaterialDiscarded
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