Skip to content
Permalink
Browse files
Set default values
  • Loading branch information
sile committed Oct 18, 2017
1 parent 98734e7 commit 4e8a79408e7359b102ab927212bdbf30dbddbadb
Showing 1 changed file with 12 additions and 12 deletions.
@@ -1,31 +1,31 @@
-record(thrift_protocol_message,
-record(thrift_protocol_struct,
{
method_name :: binary(),
message_type :: thrift_protocol:message_type(),
sequence_id :: integer(),
body :: thrift_protocol:struct()
fields = #{} :: #{thrift_protocol:field_id() => thrift_protocol:data()}
}).

-record(thrift_protocol_struct,
-record(thrift_protocol_message,
{
fields :: #{thrift_protocol:field_id() => thrift_protocol:data()}
method_name = <<>> :: binary(),
message_type = call :: thrift_protocol:message_type(),
sequence_id = 0 :: integer(),
body = #thrift_protocol_struct{} :: thrift_protocol:struct()
}).

-record(thrift_protocol_map,
{
key_type :: thrift_protocol:data_type() | undefined,
value_type :: thrift_protocol:data_type() | undefined,
elements :: #{thrift_protocol:data() => thrift_protocol:data()}
elements = #{} :: #{thrift_protocol:data() => thrift_protocol:data()}
}).

-record(thrift_protocol_set,
{
element_type :: thrift_protocol:data_type(),
elements :: [thrift_protocol:data()]
element_type = boolean :: thrift_protocol:data_type(),
elements = [] :: [thrift_protocol:data()]
}).

-record(thrift_protocol_list,
{
element_type :: thrift_protocol:data_type(),
elements :: [thrift_protocol:data()]
element_type = boolean :: thrift_protocol:data_type(),
elements = [] :: [thrift_protocol:data()]
}).

0 comments on commit 4e8a794

Please sign in to comment.