Skip to main content

Crate evenframe_derive

Crate evenframe_derive 

Source

Derive Macros§

Evenframe
For structs it generates both:
EvenframeUnion
Derive macro for unions of persistable structs Each variant must contain exactly one persistable struct type
Schemasync
Derive macro for types that only participate in database schema synchronization.
SurrealValue
SurrealValue alone, in the shape evenframe stores a type: for a value read from or written to the database that no output describes, such as a query’s row projection. A key is its #[surreal] name, else its serde name, as serde read it from the database’s JSON; defaults and representation come from its #[serde(...)] attributes.
Typesync
Derive macro for types that only participate in TypeScript type generation.