mirror of
https://github.com/valitydev/damsel.git
synced 2024-11-06 09:45:21 +00:00
dac2cb5994
Also switch to valitydev/rebar3-thrift-compiler 0.4 / valitydev/thrift 0.14.2.3
21 lines
462 B
Thrift
21 lines
462 B
Thrift
namespace erlang dmsl.msgpack
|
|
namespace java dev.vality.damsel.msgpack
|
|
|
|
/**
|
|
* Значение в msgpack, согласно [спецификации](https://github.com/msgpack/msgpack/blob/master/spec.md).
|
|
*/
|
|
union Value {
|
|
1: Nil nl
|
|
2: bool b
|
|
3: i64 i
|
|
4: double flt // Кроме ±Inf и NaN
|
|
5: string str
|
|
6: binary bin
|
|
7: Object obj
|
|
8: Array arr
|
|
}
|
|
|
|
struct Nil {}
|
|
typedef list<Value> Array
|
|
typedef map<Value, Value> Object
|