pbuf v0.1.2 Pbuf.Protoc.Field

Link to this section Summary

Link to this section Types

Link to this type

t()
t() :: %Pbuf.Protoc.Field{
  decode_fun: String.t(),
  default: String.t(),
  encode_fun: String.t(),
  hidden: boolean(),
  name: String.t(),
  oneof_index: nil | non_neg_integer(),
  post_decode: :none | :map | :repack | :oneof1 | :oneof2,
  prefix: binary(),
  tag: pos_integer(),
  typespec: String.t()
}

Link to this section Functions

Link to this function

build(desc, context)
build(Pbuf.Protoc.proto_field(), Context.t()) :: any()

Link to this function

extract_core(desc, packed? \\ true)

Link to this function

internal_type(atom)
internal_type(byte() | atom()) :: atom()

Link to this function

is_repeated?(desc)
is_repeated?(Pbuf.Protoc.proto_field()) :: boolean()

Link to this function

module_name(map)

Link to this function

stringify_binary(bin)