Function nbt_lib::nbt_value::to_nbt_value

source ยท
pub fn to_nbt_value<T>(value: T) -> Result<NbtValue, Error>
where T: Serialize,
Expand description

Function to try to convert any struct implementing Serialize into NbtValue