pub struct SimpleNpcItemSchema {
pub code: String,
pub currency: String,
pub buy_price: Option<i32>,
pub sell_price: Option<i32>,
}Fields§
§code: StringItem code.
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 SimpleNpcItemSchema
impl SimpleNpcItemSchema
pub fn new(code: String, currency: String) -> SimpleNpcItemSchema
Trait Implementations§
Source§impl Clone for SimpleNpcItemSchema
impl Clone for SimpleNpcItemSchema
Source§fn clone(&self) -> SimpleNpcItemSchema
fn clone(&self) -> SimpleNpcItemSchema
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 SimpleNpcItemSchema
impl Debug for SimpleNpcItemSchema
Source§impl Default for SimpleNpcItemSchema
impl Default for SimpleNpcItemSchema
Source§fn default() -> SimpleNpcItemSchema
fn default() -> SimpleNpcItemSchema
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SimpleNpcItemSchema
impl<'de> Deserialize<'de> for SimpleNpcItemSchema
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 SimpleNpcItemSchema
impl PartialEq for SimpleNpcItemSchema
Source§fn eq(&self, other: &SimpleNpcItemSchema) -> bool
fn eq(&self, other: &SimpleNpcItemSchema) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SimpleNpcItemSchema
impl Serialize for SimpleNpcItemSchema
impl StructuralPartialEq for SimpleNpcItemSchema
Auto Trait Implementations§
impl Freeze for SimpleNpcItemSchema
impl RefUnwindSafe for SimpleNpcItemSchema
impl Send for SimpleNpcItemSchema
impl Sync for SimpleNpcItemSchema
impl Unpin for SimpleNpcItemSchema
impl UnsafeUnpin for SimpleNpcItemSchema
impl UnwindSafe for SimpleNpcItemSchema
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