Thrift v1.3.2 Thrift.Parser.Models.Union

A Thrift union

Unions can have one field set at a time.

Summary

Types

t()
t() :: %Thrift.Parser.Models.Union{fields: %{optional(String.t) => %Thrift.Parser.Models.Field{default: term, id: term, name: term, required: term, type: term}}, name: String.t}

Functions

new(name, fields)
new(charlist, [%Thrift.Parser.Models.Field{default: term, id: term, name: term, required: term, type: term}, ...]) :: %Thrift.Parser.Models.Union{fields: term, name: term}