generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 107
Open
Labels
feature-requestThis issue requets a substantial new featureThis issue requets a substantial new featurerequires-RFCThis issue requests a substanial change to the Cedar langauge which needs to follow the RFC processThis issue requests a substanial change to the Cedar langauge which needs to follow the RFC process
Description
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,
#[derive(Cedar)]
struct Team {
#[eid]
id: String,
members: HashSet<Member>
}
#[derive(Cedar)]
struct Member {
#[eid]
id: String,
location: String,
}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?
- 👋 I may be able to implement this feature request
-
⚠️ This feature might incur a breaking change
Metadata
Metadata
Assignees
Labels
feature-requestThis issue requets a substantial new featureThis issue requets a substantial new featurerequires-RFCThis issue requests a substanial change to the Cedar langauge which needs to follow the RFC processThis issue requests a substanial change to the Cedar langauge which needs to follow the RFC process