pub struct ItemUpdate {Show 16 fields
pub name: Option<String>,
pub prefix: Option<String>,
pub manufacturer: Option<String>,
pub weapon_type: Option<String>,
pub rarity: Option<String>,
pub level: Option<i32>,
pub element: Option<String>,
pub dps: Option<i32>,
pub damage: Option<i32>,
pub accuracy: Option<i32>,
pub fire_rate: Option<f64>,
pub reload_time: Option<f64>,
pub mag_size: Option<i32>,
pub value: Option<i32>,
pub red_text: Option<String>,
pub notes: Option<String>,
}Expand description
Update payload for items
Fields§
§name: Option<String>§prefix: Option<String>§manufacturer: Option<String>§weapon_type: Option<String>§rarity: Option<String>§level: Option<i32>§element: Option<String>§dps: Option<i32>§damage: Option<i32>§accuracy: Option<i32>§fire_rate: Option<f64>§reload_time: Option<f64>§mag_size: Option<i32>§value: Option<i32>§red_text: Option<String>§notes: Option<String>Trait Implementations§
Source§impl Clone for ItemUpdate
impl Clone for ItemUpdate
Source§fn clone(&self) -> ItemUpdate
fn clone(&self) -> ItemUpdate
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 ItemUpdate
impl Debug for ItemUpdate
Source§impl Default for ItemUpdate
impl Default for ItemUpdate
Source§fn default() -> ItemUpdate
fn default() -> ItemUpdate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ItemUpdate
impl<'de> Deserialize<'de> for ItemUpdate
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
Auto Trait Implementations§
impl Freeze for ItemUpdate
impl RefUnwindSafe for ItemUpdate
impl Send for ItemUpdate
impl Sync for ItemUpdate
impl Unpin for ItemUpdate
impl UnwindSafe for ItemUpdate
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