Enum veloren_common::comp::inventory::loadout_builder::ItemSpec
source · enum ItemSpec {
Item(String),
ModularWeapon {
tool: ToolKind,
material: Material,
hands: Option<Hands>,
},
Choice(Vec<(u8, Option<ItemSpec>)>),
Seasonal(Vec<(Option<CalendarEvent>, ItemSpec)>),
}
Variants§
Item(String)
ModularWeapon
Parameters in this variant are used to randomly create a modular weapon that meets the provided parameters
Choice(Vec<(u8, Option<ItemSpec>)>)
Seasonal(Vec<(Option<CalendarEvent>, ItemSpec)>)
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for ItemSpec
impl<'de> Deserialize<'de> for ItemSpec
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 RefUnwindSafe for ItemSpec
impl Send for ItemSpec
impl Sync for ItemSpec
impl Unpin for ItemSpec
impl UnwindSafe for ItemSpec
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