skyblock_repo/models/
enchantment.rs

1#[cfg(feature = "python")]
2use pyo3::{pyclass, pymethods};
3#[cfg(feature = "python")]
4use skyblock_repo_macros::PyStr;
5use serde::{Deserialize, Serialize};
6
7#[derive(Debug, Serialize, Deserialize, PartialEq, Clone)]
8#[serde(rename_all = "camelCase")]
9#[cfg_attr(feature = "python", pyclass, derive(PyStr))]
10pub struct SkyblockEnchantment {
11	pub internal_id: String,
12	pub name: Option<String>,
13	pub category: Option<String>,
14	pub source: Option<String>,
15	pub min_level: Option<u8>,
16	pub max_level: Option<u8>,
17	#[serde(default)]
18	pub items: Vec<String>,
19}