pub struct NpcItem {
pub code: String,
pub npc: String,
pub currency: String,
pub buy_price: Option<i32>,
pub sell_price: Option<i32>,
}Fields§
§code: StringThe code of the NPC. This is the NPC’s unique identifier (ID).
npc: StringCode of the NPC that sells/buys the item.
currency: StringCurrency used to buy/sell the item. If it’s not gold, it’s the item code.
buy_price: Option<i32>§sell_price: Option<i32>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NpcItem
impl<'de> Deserialize<'de> for NpcItem
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
impl StructuralPartialEq for NpcItem
Auto Trait Implementations§
impl Freeze for NpcItem
impl RefUnwindSafe for NpcItem
impl Send for NpcItem
impl Sync for NpcItem
impl Unpin for NpcItem
impl UnwindSafe for NpcItem
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