Expand description
Type conversion utilities for code generation
This module provides utilities for converting between protobuf types and Rust types during code generation.
Structs§
- Napi
Renderer - Rust NAPI parameter type renderer.
- Python
Renderer - Python type annotation renderer.
- Rust
Renderer - Rust type renderer — handles optional
impl Into<>/Option<>wrapping. - Type
Script Renderer - TypeScript type annotation renderer.
- 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. - Render
Context - Context for rendering types in different situations
Traits§
- Type
Renderer - Trait for rendering a
UnifiedTypeinto a language-specific string.
Functions§
- field_
assignment - Generate field assignment code.
- unified_
to_ napi - Convert a unified type to a Rust NAPI parameter type string.
- unified_
to_ python_ type - Convert a unified type to a Python type annotation 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.