[][src]Trait amq_protocol_codegen::HandlebarsAMQPExtension

pub trait HandlebarsAMQPExtension {
    pub fn register_amqp_helpers(self) -> Self;
pub fn simple_codegen_with_data(
        out_dir: &str,
        target: &str,
        template_name: &str,
        template: &str,
        var_name: &str,
        data: Option<Value>
    ); pub fn simple_codegen(
        out_dir: &str,
        target: &str,
        template_name: &str,
        template: &str,
        var_name: &str
    ) { ... } }

Our extension for better integration with Handlebars

Required methods

pub fn register_amqp_helpers(self) -> Self[src]

Register the various standard helpers we'll need for AMQP codegen

pub fn simple_codegen_with_data(
    out_dir: &str,
    target: &str,
    template_name: &str,
    template: &str,
    var_name: &str,
    data: Option<Value>
)
[src]

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.

Loading content...

Provided methods

pub fn simple_codegen(
    out_dir: &str,
    target: &str,
    template_name: &str,
    template: &str,
    var_name: &str
)
[src]

Generate code using the standard representation of specs and the given template, using the given name for the variable holding the protocol definition.

Loading content...

Implementors

impl<'a> HandlebarsAMQPExtension for CodeGenerator<'a>[src]

Loading content...