Expand description
gin-tonic wrapepr for code generation (models and service)
Re-exports§
pub use gin_tonic_core;
pub use gin_tonic_derive;
Modules§
Structs§
- Compile
Config - CompileConfig transforming
*.proto
files into Rust code - GinCodec
Enums§
- Compiler
Error - Decode
Error - decoding protobuf can end up in errors which are handled in this enumeration
Traits§
- Decode
- main decode trait, currenlty implemented for anything that implements bytes::Buf
- Encode
- main encode trait, currently implement for anything that implements bytes::BufMut and SizeHint
- PbOneOf
- a special traits for oneof that adds matching for field numbers of oneofs and removes
the
WIRE_TYPE
const as this is not const in the case of oneofs - PbType
- any protobuf message or type needs to imlement this trait
- Tag
- a protobuf tag is a u32 the combines the field number and a wire type
Derive Macros§
- Enumeration
- a macro to derive enumerations
- Message
- a macro to derive protobof messages
- OneOf
- a macro to derive a message as oneof if it only contains a oneof