//! Shared builder helpers for Dioxus code generation.
//!
//! Both `types.rs` and `api.rs` generate constructor + setter methods for
//! structs. This module provides the shared logic so it can't diverge.
use RustType;
use crateemit;
/// String fields use `impl Into<String>` for ergonomics.
/// String fields call `.into()` to match `impl Into<String>`.