Crate trustfall_derive

source ·
Expand description

Commonly-implemented functionality for Trustfall vertex types.

Trustfall vertex types are nearly always enums. Here’s the easiest way to make a Trustfall vertex:

#[derive(Debug, Clone, TrustfallEnumVertex)]
enum Vertex {
    // variants that match the type in your schema;
    // for example:
    User(Rc<User>),
    Message(Rc<Message>),
}

Derive Macros