Expand description
§Recallable Macro
Procedural macros backing the recallable crate.
Provided macros:
-
#[recallable_model]: injectsRecallable/Recallderives; with theserdeCargo feature enabled for this macro crate it also addsserde::Serializeand applies#[serde(skip)]to fields marked#[recallable(skip)]. -
#[derive(Recallable)]: generates an internal companion memento struct, exposes it as<Struct as Recallable>::Memento, and emits theRecallableimpl; with theimpl_fromCargo feature it also generatesFrom<Struct>for the memento type. -
#[derive(Recall)]: generates theRecallimplementation and recursively recalls fields annotated with#[recallable].
Feature flags are evaluated in the recallable-macro crate itself. See context
for details about the generated memento struct and trait implementations.
Attribute Macros§
- recallable_
model - Attribute macro that augments a struct with
Recallable/Recallderives.
Derive Macros§
- Recall
- Derive macro that generates the
Recalltrait implementation. - Recallable
- Derive macro that generates the companion memento type and
Recallableimpl.