anmolitor/elm-protoc-types/2.0.0

Formerly andreasewering/elm-protoc-types. Search finds this package by either name.

Proto.Google.Protobuf.FieldOptions.CType

This file was automatically generated by

  • protoc-gen-elm 4.0.1
  • protoc 4.22.2
  • the following specification files: google/protobuf/descriptor.proto

To run it, add a dependency via elm install on elm-protocol-buffers version latest or higher.

type CType
= STRING
| CORD
| STRINGPIECE

CType enumeration

decodeCType : Decoder CType

Declares how to decode a CType from Bytes. To actually perform the conversion from Bytes, you need to use Protobuf.Decode.decode from eriktim/elm-protocol-buffers.

Default for CType. Should only be used for 'required' decoders as an initial value.

encodeCType : CType -> Encoder

Declares how to encode a CType to Bytes. To actually perform the conversion to Bytes, you need to use Protobuf.Encode.encode from eriktim/elm-protocol-buffers.

The field numbers for the fields of CType. This is mostly useful for internals, like documentation generation.

Decode a CType from JSON. Uses the canonical encoding described here: https://protobuf.dev/programming-guides/proto3/#json

Encode a CType to JSON. Uses the canonical encoding described here: https://protobuf.dev/programming-guides/proto3/#json