You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
618 B
Rust
21 lines
618 B
Rust
#[derive(Deserialize, Debug, Clone)]
|
|
#[serde(rename_all(deserialize = "camelCase", serialize = "snake_case"))]
|
|
pub struct Item {
|
|
pub id: u32,
|
|
pub display_name: String,
|
|
pub stack_size: u8,
|
|
pub enchant_categories: Option<Vec<String>>,
|
|
pub fixed_with: Option<Vec<String>>,
|
|
pub max_durability: Option<u32>,
|
|
pub name: String,
|
|
pub variations: Option<Vec<Variation>>,
|
|
pub durability: Option<u32>,
|
|
}
|
|
|
|
#[derive(Deserialize, Debug, Clone)]
|
|
#[serde(rename_all(deserialize = "camelCase", serialize = "snake_case"))]
|
|
pub struct Variation {
|
|
pub metadata: u32,
|
|
pub display_name: String,
|
|
}
|