[−][src]Trait amq_protocol_codegen::HandlebarsAMQPExtension
Our extension for better integration with Handlebars
Required methods
fn register_amqp_helpers(self) -> Self
Register the various standrad helpers we'll need for AMQP codegen
fn simple_codegen_with_data(
out_dir: &str,
target: &str,
template_name: &str,
template: &str,
var_name: &str,
data: Option<Value>
)
out_dir: &str,
target: &str,
template_name: &str,
template: &str,
var_name: &str,
data: 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 templte.
Provided methods
fn simple_codegen(
out_dir: &str,
target: &str,
template_name: &str,
template: &str,
var_name: &str
)
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.
Implementors
impl HandlebarsAMQPExtension for CodeGenerator
[src]
fn register_amqp_helpers(self) -> CodeGenerator
[src]
fn simple_codegen_with_data(
out_dir: &str,
target: &str,
template_name: &str,
template: &str,
var_name: &str,
metadata: Option<Value>
)
[src]
out_dir: &str,
target: &str,
template_name: &str,
template: &str,
var_name: &str,
metadata: Option<Value>
)
fn simple_codegen(
out_dir: &str,
target: &str,
template_name: &str,
template: &str,
var_name: &str
)
[src]
out_dir: &str,
target: &str,
template_name: &str,
template: &str,
var_name: &str
)