arcane-rs / arcane

1 stars 1 forks source link

Add generic reflection over event names and versions #6

Closed 50U10FCA7 closed 1 year ago

50U10FCA7 commented 1 year ago

Requires #7

Synopsis

At now, codegen machinery expands into non-generic code for handling event::Names and event::Revisions.

Solution

Provide two traits to add generic reflection:

and one struct:

Checklist

50U10FCA7 commented 1 year ago

FCM

Add generic reflection over event names and versions (#6)

- add `es::event::reflect::Name` and `es::event::reflect::Revision` in `arcane-core` crate
- replace `es::event::codegen::Reflect` with `es::event::codegen::Meta` in `arcane-core` crate
50U10FCA7 commented 1 year ago

Discussed:

To discuss:

ack @tyranron

50U10FCA7 commented 1 year ago

@tyranron Meta is now represented as separated traits because we need to know the type of event revision (which requires Revisable bound).