[][src]Module fastnbt::de

A conventional serde deserializer module.

from_bytes can be used to convert NBT data into a Rust struct. You can not deserialize into primitive types directly eg from_bytes::<u32>(...) due to the NBT data format itself.

Structs

Deserializer

Deserializer for getting a T from some NBT data. Quite often you will need to rename fields using serde, as most Minecraft NBT data has inconsistent naming. The examples below show this with the rename_all attribute. See serdes other attributes for more.

Functions

from_bytes

Deserialize into a T from some NBT data. See Deserializer for more information.