mu-protobuf-0.1.0.0: Protocol Buffers serialization and gRPC schema import for Mu microservices

Safe HaskellNone
LanguageHaskell2010

Mu.Quasi.ProtoBuf.Example

Description

Look at the source code of this module.

Documentation

type ExampleProtoBufSchema = '[DRecord "person" '[FieldDef "firstName" (TPrimitive Text), FieldDef "lastName" (TPrimitive Text), FieldDef "age" (TPrimitive Int32), FieldDef "gender" (TSchematic "gender"), FieldDef "address" (TSchematic "address")], DRecord "address" '[FieldDef "postcode" (TPrimitive Text), FieldDef "country" (TPrimitive Text)], DEnum "gender" '[ChoiceDef "nb", ChoiceDef "male", ChoiceDef "female"]] Source #

type Example2ProtoBufSchema = '[DEnum "gender" '[ChoiceDef "male", ChoiceDef "female", ChoiceDef "nonbinary"], DRecord "person" '[FieldDef "names" (TList (TPrimitive Text)), FieldDef "age" (TPrimitive Int32), FieldDef "gender" (TSchematic "gender")]] Source #