How to deserialize Decimal of Tarantool 2.10+ response in Rust?

55 Views Asked by At

With Rust select space contain field type decimal how to deserialize? I am using alopecosa crate select working fine primative type like boolean, string, number expect some new type like decimal need manual deserialize Type I want Decimal (rust_decimal crate)

1

There are 1 best solutions below

0
Meas On

I fixed with import tarantool::decimal::Decimal; the crate Rust tarantool runtime Just make Rust struct field as type Decimal from above crate it done