Skip to main content

Crate vld_lapin

Crate vld_lapin 

Source
Expand description

§vld-lapin

Lapin (RabbitMQ) integration for vld.

§Overview

vld-lapin keeps one entrypoint macro:

  • impl_to_lapin!(channel)

After rebinding, channel becomes a validating wrapper with:

  • publish helper: publish
  • get/decode helpers: basic_get, decode_bytes, decode_delivery, decode_get
  • ack helpers: ack_decode, nack_decode, reject_decode
  • get+ack helpers: ack_decode_get, nack_decode_get, reject_decode_get

All other native lapin::Channel methods are still available through deref.

Re-exports§

pub use vld;

Modules§

prelude

Macros§

impl_to_lapin

Structs§

LapinChannel
Lapin channel wrapper with validate+JSON behavior.

Enums§

VldLapinError
Error type for vld-lapin.