pub struct ShopItem {
pub item_id: String,
pub stock: i32,
pub price_override: Option<i64>,
}Expand description
An item listing in a shop.
Fields§
§item_id: String§stock: i32§price_override: Option<i64>Trait Implementations§
Source§impl<'de> Deserialize<'de> for ShopItem
impl<'de> Deserialize<'de> for ShopItem
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 ShopItem
impl RefUnwindSafe for ShopItem
impl Send for ShopItem
impl Sync for ShopItem
impl Unpin for ShopItem
impl UnsafeUnpin for ShopItem
impl UnwindSafe for ShopItem
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