Pbuf.Encoder.field

You're seeing just the function field, go back to Pbuf.Encoder module for more information.

Specs

field(atom(), any()) :: iodata()

Encodes a value

Link to this function

field(arg1, val, prefix)

Specs

field(atom(), any(), binary()) :: iodata()

Encodes a field. This means we encode the prefix + the value. We also do type checking and, omit any nil / default values.