pub struct NpcItemSchema {
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>Price to buy the item.
sell_price: Option<i32>Price to sell the item.
Implementations§
Source§impl NpcItemSchema
impl NpcItemSchema
Trait Implementations§
Source§impl Clone for NpcItemSchema
impl Clone for NpcItemSchema
Source§fn clone(&self) -> NpcItemSchema
fn clone(&self) -> NpcItemSchema
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NpcItemSchema
impl Debug for NpcItemSchema
Source§impl Default for NpcItemSchema
impl Default for NpcItemSchema
Source§fn default() -> NpcItemSchema
fn default() -> NpcItemSchema
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NpcItemSchema
impl<'de> Deserialize<'de> for NpcItemSchema
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 NpcItemSchema
impl PartialEq for NpcItemSchema
Source§fn eq(&self, other: &NpcItemSchema) -> bool
fn eq(&self, other: &NpcItemSchema) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for NpcItemSchema
impl Serialize for NpcItemSchema
impl StructuralPartialEq for NpcItemSchema
Auto Trait Implementations§
impl Freeze for NpcItemSchema
impl RefUnwindSafe for NpcItemSchema
impl Send for NpcItemSchema
impl Sync for NpcItemSchema
impl Unpin for NpcItemSchema
impl UnsafeUnpin for NpcItemSchema
impl UnwindSafe for NpcItemSchema
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