pub struct ItemSchema {
pub name: String,
pub code: String,
pub level: u32,
pub type: String,
pub subtype: String,
pub description: String,
pub conditions: Option<Vec<ConditionSchema>>,
pub effects: Option<Vec<SimpleEffectSchema>>,
pub craft: Option<Option<Box<CraftSchema>>>,
pub tradeable: bool,
}Fields§
§name: StringItem name.
code: StringItem code. This is the item’s unique identifier (ID).
level: u32Item level.
type: StringItem type.
subtype: StringItem subtype.
description: StringItem description.
conditions: Option<Vec<ConditionSchema>>Item conditions. If applicable. Conditions for using or equipping the item.
effects: Option<Vec<SimpleEffectSchema>>List of object effects. For equipment, it will include item stats.
craft: Option<Option<Box<CraftSchema>>>§tradeable: boolItem tradeable status. A non-tradeable item cannot be exchanged or sold.
Implementations§
Trait Implementations§
Source§impl Clone for ItemSchema
impl Clone for ItemSchema
Source§fn clone(&self) -> ItemSchema
fn clone(&self) -> ItemSchema
Returns a duplicate 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 Debug for ItemSchema
impl Debug for ItemSchema
Source§impl Default for ItemSchema
impl Default for ItemSchema
Source§fn default() -> ItemSchema
fn default() -> ItemSchema
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ItemSchema
impl<'de> Deserialize<'de> for ItemSchema
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 ItemSchema
impl PartialEq for ItemSchema
Source§impl Serialize for ItemSchema
impl Serialize for ItemSchema
impl StructuralPartialEq for ItemSchema
Auto Trait Implementations§
impl Freeze for ItemSchema
impl RefUnwindSafe for ItemSchema
impl Send for ItemSchema
impl Sync for ItemSchema
impl Unpin for ItemSchema
impl UnwindSafe for ItemSchema
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