Macros for entity/object conversion #986
Labels
feature-request
This issue requets a substantial new feature
requires-RFC
This issue requests a substanial change to the Cedar langauge which needs to follow the RFC process
Category
User level API features/changes
Describe the feature you'd like to request
Derive macros on Rust structs that generate methods to convert them to/from entities. This is akin to ORM. For instance,
Team { id: "t0", member: [Member {id: "m0", location: "USA"}, Member {id: "m1", location: "CAN"}]}
gets converted to entities{Team::"t0": { "member": [Member::"m0", Member::"m1"]}, Member::"m0": {...}, Member::"m1": {...}
.Describe alternatives you've considered
N/A
Additional context
No response
Is this something that you'd be interested in working on?
The text was updated successfully, but these errors were encountered: