eventide-macros 0.1.1

Procedural macros for the eventide DDD/CQRS toolkit: derive entities, entity ids, value objects and domain events with a single attribute.
Documentation
1
2
3
4
5
6
7
8
9
10
use eventide_macros::entity;
use serde::{Deserialize, Serialize};

#[entity(id = String)]
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
struct Account {
    name: String,
}

fn main() {}