Skip to main content

Crate batpak_macros

Crate batpak_macros 

Source
Expand description

Proc macros for the batpak event-sourcing runtime.

This crate is pulled in transitively via batpak. Users never add it to their own Cargo.toml — the derives are already in scope via use batpak::EventPayload; or use batpak::EventSourced;.

Derive Macros§

EventPayload
Derives batpak::event::EventPayload for a named-field struct.
EventSourced
Derives batpak::event::EventSourced for a named-field struct.
MultiEventReactor
Derives batpak::event::MultiReactive<Input> for a named-field struct, for use with Store::react_loop_multi (JSON) or Store::react_loop_multi_raw (msgpack).