Thrift v1.3.2 Thrift.Parser.Models.Field

A Thrift field.

Fields define a named type and can occur in functions, structs, unions, exceptions and the parameter list and throws clauses of functions.

Fields can refer to each other. These are represented by the FieldReference type.

This module also contains some utilities for validating and fixing up fields.

Summary

Types

printable()
printable() :: String.t | atom
t()
t() :: %Thrift.Parser.Models.Field{default: Thrift.Parser.Literals.t, id: integer, name: String.t, required: boolean, type: Thrift.Parser.Types.t}

Functions

build_field_list(parent_name, fields)
build_field_list(printable, [%Thrift.Parser.Models.Field{default: term, id: term, name: term, required: term, type: term}]) :: [%Thrift.Parser.Models.Field{default: term, id: term, name: term, required: term, type: term}]
new(id, required, type, name, default)
new(integer, boolean, Thrift.Parser.Types.t, charlist, Thrift.Parser.Literals.t) :: %Thrift.Parser.Models.Field{default: term, id: term, name: term, required: term, type: term}