Type Alias 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

Aliased Type§

struct CodeGenerator<'a> { /* private fields */ }

Trait Implementations§

source§

impl<'a> HandlebarsAMQPExtension for CodeGenerator<'a>

source§

fn register_amqp_helpers(self) -> CodeGenerator<'a>

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, 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.
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.