Type Definition amq_protocol_codegen::CodeGenerator
source · pub type CodeGenerator = Handlebars;
Expand description
Type alias to avoid making our users explicitely depend on an extra dependency
Trait Implementations
sourceimpl HandlebarsAMQPExtension for CodeGenerator
impl HandlebarsAMQPExtension for CodeGenerator
sourcefn register_amqp_helpers(self) -> CodeGenerator
fn register_amqp_helpers(self) -> CodeGenerator
Register the various standrad helpers we’ll need for AMQP codegen
sourcefn simple_codegen(
out_dir: &str,
target: &str,
template_name: &str,
template: &str,
var_name: &str
)
fn simple_codegen(
out_dir: &str,
target: &str,
template_name: &str,
template: &str,
var_name: &str
)
Generate code using the standard representation of specs and the given template, using the
given name for the variable holding the protocol definition. Read more