pub struct BuyMicroResourceEventResource {
pub name: Item,
pub name_localized: Option<String>,
pub category: ItemCategory,
pub count: u16,
}
Expand description
Entry for an item the player has bought.
Fields§
§name: Item
The item that was bought.
name_localized: Option<String>
The localized name of the item that was bought.
category: ItemCategory
The category of the item bought.
count: u16
The number of items that were bought.
Trait Implementations§
Source§impl Clone for BuyMicroResourceEventResource
impl Clone for BuyMicroResourceEventResource
Source§fn clone(&self) -> BuyMicroResourceEventResource
fn clone(&self) -> BuyMicroResourceEventResource
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 BuyMicroResourceEventResource
impl<'de> Deserialize<'de> for BuyMicroResourceEventResource
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 BuyMicroResourceEventResource
impl PartialEq for BuyMicroResourceEventResource
Source§fn eq(&self, other: &BuyMicroResourceEventResource) -> bool
fn eq(&self, other: &BuyMicroResourceEventResource) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for BuyMicroResourceEventResource
Auto Trait Implementations§
impl Freeze for BuyMicroResourceEventResource
impl RefUnwindSafe for BuyMicroResourceEventResource
impl Send for BuyMicroResourceEventResource
impl Sync for BuyMicroResourceEventResource
impl Unpin for BuyMicroResourceEventResource
impl UnwindSafe for BuyMicroResourceEventResource
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