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