pub enum ItemType {
Weapon,
Torso,
Head,
Legs,
Shoulders,
Boots,
Gloves,
Waist,
Neck,
Ring,
}Variants§
Trait Implementations§
Source§impl CustomType for ItemType
impl CustomType for ItemType
Source§fn build(builder: TypeBuilder<'_, Self>)
fn build(builder: TypeBuilder<'_, Self>)
Builds the custom type for use with the [
Engine]. Read moreSource§impl<'de> Deserialize<'de> for ItemType
impl<'de> Deserialize<'de> for ItemType
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 IntoEnumIterator for ItemType
impl IntoEnumIterator for ItemType
type Iterator = ItemTypeIter
fn iter() -> ItemTypeIter ⓘ
Source§impl JsonSchema for ItemType
impl JsonSchema for ItemType
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl Sequence for ItemType
impl Sequence for ItemType
Source§impl Tsify for ItemType
impl Tsify for ItemType
const DECL: &'static str = "declare namespace ItemType {\n export type Weapon = \"Weapon\";\n export type Torso = \"Torso\";\n export type Head = \"Head\";\n export type Legs = \"Legs\";\n export type Shoulders = \"Shoulders\";\n export type Boots = \"Boots\";\n export type Gloves = \"Gloves\";\n export type Waist = \"Waist\";\n export type Neck = \"Neck\";\n export type Ring = \"Ring\";\n}\n\nexport type ItemType = \"Weapon\" | \"Torso\" | \"Head\" | \"Legs\" | \"Shoulders\" | \"Boots\" | \"Gloves\" | \"Waist\" | \"Neck\" | \"Ring\";"
const SERIALIZATION_CONFIG: SerializationConfig
type JsType = JsType
fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
fn from_js<T>(js: T) -> Result<Self, Error>
impl Copy for ItemType
impl Eq for ItemType
impl StructuralPartialEq for ItemType
Auto Trait Implementations§
impl Freeze for ItemType
impl RefUnwindSafe for ItemType
impl Send for ItemType
impl Sync for ItemType
impl Unpin for ItemType
impl UnwindSafe for ItemType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more