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 - Unified type representation that can be converted to different target languages
Enums§
- Base
Type - Base type categories that can be converted to specific language types
- 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.