Struct minecraft_json::minecraft::data::conditions::Enchantment [−][src]
Expand description
Minecraft enchantment.
Fields
enchantment: Option<String>
An enchantment ID.
levels: Option<Ranged<isize>>
The level of the enchantment.
Trait Implementations
Returns the “default value” for a type. Read more
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.