pub fn generate_module(module: &Module) -> Result<String, CodegenError>Expand description
Generate a complete module file: the use canton_daml as rt; preamble plus
every data type and template, ready to write to a .rs file in a generated
crate.
ยงErrors
Returns CodegenError if the generated tokens are not valid Rust.