Expand description
Type conversion utilities for code generation
This module provides utilities for converting between protobuf types and Rust types during code generation.
Structs§
- Unified
Type - A language-neutral description of a protobuf field’s type.
Enums§
- Base
Type - The underlying category of a
UnifiedType, independent of optional/repeated wrapping. - Json
Type - A free-form JSON type of
google/protobuf/struct.proto: the runtime’s well-known type in Rust, a plain object in Python. - Render
Context - Context for rendering types in different situations
Functions§
- field_
assignment - Generate field assignment code.
- unified_
to_ napi - Convert a unified type to a Rust NAPI parameter type string.
- unified_
to_ rust - Convert a unified type to a Rust type string.
- unified_
to_ typescript - Convert a unified type to a TypeScript type annotation string.