pub fn struct_to_record(
item: &ItemStruct,
known: &BTreeSet<String>,
) -> Result<String, String>Expand description
Render a record <name> { ... } WIT block from a Rust struct (named fields
only). Field types are mapped with known so they may reference other user
types.