mirror of
https://github.com/valitydev/damsel.git
synced 2024-11-06 17:55:23 +00:00
21 lines
459 B
Thrift
21 lines
459 B
Thrift
|
namespace erlang msgpack
|
|||
|
namespace java com.rbkmoney.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
|