Crate amq_protocol_codegen

Source
Expand description

§AMQP code generation utilities

amq-protocol-codegen is a library aiming at providing tools to generate code from official AMQP specs definition.

Structs§

AMQPClass
A class as defined in the AMQP specification
AMQPConstant
A constant as defined in the AMQP specification
AMQPFlagArgument
An argument holding a flag as defined in the AMQP specification
AMQPFlagsArgument
An argument holding a flags as defined in the AMQP specification
AMQPMethod
A method as defined in the AMQP specification
AMQPProperty
A property as defined in the AMQP specification
AMQPValueArgument
An argument holding a value as defined in the AMQP specification
AMQPValueRefHelper
Helper for “unwrapping” an amqp_value
AMQProtocolDefinition
Structure holding the definition of the protocol
CamelHelper
Helper for converting text to camel case
EachArgumentHelper
Helper to walk through a Vec of AMQPArgument.
IncludeMoreHelper
Helper to include additional code such as rustdoc
PassByRefHelper
Helper to check whether a param is passed by ref or not
SanitizeNameHelper
Helper to sanitize name so the it becomes a valid identifier
SnakeHelper
Helper for converting text to snake case
SnakeTypeHelper
Helper for getting the type name converted to snake case
UseBytesRefHelper
Helper to check whether a param is passed using an &u8 or its real type
UseStrRefHelper
Helper to check whether a param is passed using an &str or its real type

Enums§

AMQPArgument
An argument as defined in the AMQP specification

Traits§

HandlebarsAMQPExtension
Our extension for better integration with Handlebars

Functions§

camel_case
Convert input to camel case
snake_case
Convert input to snake case

Type Aliases§

CodeGenerator
Type alias to avoid making our users explicitly depend on an extra dependency