Protox.Default (Protox v1.2.2) View Source

Default values of Protocol Buffers types.

Note that generated structs contain a default/1 function to return the default value of a field using its name.

Link to this section Summary

Functions

Returns the default value of a Protocol Buffer type specified with an atom.

Link to this section Functions

Specs

default(atom() | {atom(), atom()}) ::
  false | integer() | float() | binary() | nil | atom()

Returns the default value of a Protocol Buffer type specified with an atom.