View Source Protox.Default (Protox v1.7.2)
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
Returns the default value of a Protocol Buffer type specified with an atom.
examples
Examples
iex> Protox.Default.default(:bool)
false
iex> Protox.Default.default(:string)
""