trustfall_derive 0.3.1

Derive macros for the trustfall query engine.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use trustfall_derive::TrustfallEnumVertex;

// Note the missing comma after the second variant.
#[derive(Debug, Clone, TrustfallEnumVertex)]
enum Vertex {
    User(String),
    Message { sender: String, content: String }
    EmptyVariant,
}

fn main() {}