Type Definition amq_protocol_codegen::CodeGenerator
source · [−]pub type CodeGenerator<'a> = Handlebars<'a>;
Expand description
Type alias to avoid making our users explicitly depend on an extra dependency
Trait Implementations
sourceimpl<'a> HandlebarsAMQPExtension for CodeGenerator<'a>
impl<'a> HandlebarsAMQPExtension for CodeGenerator<'a>
sourcefn register_amqp_helpers(self) -> CodeGenerator<'a>
fn register_amqp_helpers(self) -> CodeGenerator<'a>
Register the various standard helpers we’ll need for AMQP codegen
sourcefn simple_codegen_with_data(
out_dir: &str,
target: &str,
template_name: &str,
template: &str,
var_name: &str,
metadata: Option<Value>
)
fn simple_codegen_with_data(
out_dir: &str,
target: &str,
template_name: &str,
template: &str,
var_name: &str,
metadata: Option<Value>
)
Generate code using the standard representation of specs and the given template, using the given name for the variable holding the protocol definition, and also passing data to the template. Read more
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