pub struct Item<'a> {
pub name: String,
pub description: String,
pub effect: Option<&'a str>,
pub requirement: Option<&'a str>,
pub item_type: ItemType,
pub weapon_type: Option<WeaponType>,
pub buy_price: Option<u64>,
pub sell_price: Option<u64>,
pub market_value: Option<u64>,
pub circulation: Option<u32>,
pub image: String,
}
Fields§
§name: String
§description: String
§effect: Option<&'a str>
§requirement: Option<&'a str>
§item_type: ItemType
§weapon_type: Option<WeaponType>
§buy_price: Option<u64>
§sell_price: Option<u64>
§market_value: Option<u64>
§circulation: Option<u32>
§image: String
Trait Implementations§
source§impl<'de: 'a, 'a> Deserialize<'de> for Item<'a>
impl<'de: 'a, 'a> Deserialize<'de> for Item<'a>
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
Auto Trait Implementations§
impl<'a> Freeze for Item<'a>
impl<'a> RefUnwindSafe for Item<'a>
impl<'a> Send for Item<'a>
impl<'a> Sync for Item<'a>
impl<'a> Unpin for Item<'a>
impl<'a> UnwindSafe for Item<'a>
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