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

    // Provided method
    fn simple_codegen(
        out_dir: &str,
        target: &str,
        template_name: &str,
        template: &str,
        var_name: &str
    ) { ... }
}
Expand description

Our extension for better integration with Handlebars

Required Methods§

source

fn register_amqp_helpers(self) -> Self

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

source

fn simple_codegen_with_data( 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 template.

Provided Methods§

source

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.

Object Safety§

This trait is not object safe.

Implementors§