Expand description
REGULA Macros - Procedural macros for the REGULA framework.
This crate provides the #[derive(GraphState)] macro for automatically
implementing the GraphState trait on structs.
§Usage
ⓘ
use regula_macros::GraphState;
use serde::{Serialize, Deserialize};
#[derive(Clone, GraphState, Serialize, Deserialize)]
struct MyState {
messages: Vec<String>,
#[reducer(append)]
history: Vec<String>,
}Derive Macros§
- Graph
State - Derive macro for implementing
GraphStateon structs.