#[repr(u8)]
pub enum Tag {
Show 13 variants
End,
Byte,
Short,
Int,
Long,
Float,
Double,
ByteArray,
String,
List,
Compound,
IntArray,
LongArray,
}
Expand description
An NBT tag. This does not carry the value or the name of the data.
Variants§
End
Represents the end of a Compound object.
Byte
Equivalent to i8.
Short
Equivalent to i16.
Int
Equivalent to i32.
Long
Equivalent to i64
Float
Equivalent to f32.
Double
Equivalent to f64.
ByteArray
Represents as array of Byte (i8).
String
Represents a Unicode string.
List
Represents a list of other objects, elements are not required to be the same type.
Compound
Represents a struct-like structure.
IntArray
Represents as array of Int (i32).
LongArray
Represents as array of Long (i64).
Trait Implementations§
source§impl<'de> Deserialize<'de> for Tag
impl<'de> Deserialize<'de> for Tag
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