Skip to main content

Module types

Module types 

Source
Expand description

Type conversion utilities for code generation

This module provides utilities for converting between protobuf types and Rust types during code generation.

Structs§

NapiRenderer
Rust NAPI parameter type renderer.
PythonRenderer
Python type annotation renderer.
RustRenderer
Rust type renderer — handles optional impl Into<> / Option<> wrapping.
TypeScriptRenderer
TypeScript type annotation renderer.
UnifiedType
Unified type representation that can be converted to different target languages

Enums§

BaseType
Base type categories that can be converted to specific language types
RenderContext
Context for rendering types in different situations

Traits§

TypeRenderer
Trait for rendering a UnifiedType into 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.