pub struct TornItem {Show 14 fields
pub id: ItemId,
pub name: String,
pub description: String,
pub effect: Option<String>,
pub requirement: Option<String>,
pub image: String,
pub type: TornItemTypeEnum,
pub sub_type: Option<TornItemWeaponTypeEnum>,
pub is_masked: bool,
pub is_tradable: bool,
pub is_found_in_city: bool,
pub value: Value,
pub circulation: i64,
pub details: Option<Details>,
}
Fields§
§id: ItemId
§name: String
§description: String
§effect: Option<String>
§requirement: Option<String>
§image: String
§type: TornItemTypeEnum
§sub_type: Option<TornItemWeaponTypeEnum>
§is_masked: bool
§is_tradable: bool
§is_found_in_city: bool
§value: Value
§circulation: i64
§details: Option<Details>
If the item ‘type’ is ‘Armor’ then TornItemArmorDetails is returned.
If the item ‘type’ is ‘Weapon’ then TornItemWeaponDetails is returned.
Otherwise, null is returned.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TornItem
impl<'de> Deserialize<'de> for TornItem
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 TornItem
Auto Trait Implementations§
impl Freeze for TornItem
impl RefUnwindSafe for TornItem
impl Send for TornItem
impl Sync for TornItem
impl Unpin for TornItem
impl UnwindSafe for TornItem
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