auraed
auraed copied to clipboard
Objects and Code Generation
The Aurae project is based around the concept of objects.
Giving that an RPC Message is the lowest common definition for our data structures, we will need to be able to generate a substantial amount of code and boilerplate for each object.
Developers (and maybe one day consumers, clients, and end-users) should have an easy way of creating and expressing new and generic objects in the codebase.
For each object we define as an RPC message we will need to do the following.
- Establish a database table, and corresponding schema.
- Establish a source of truth for Rust structures
- Establish client code
- Establish server code
- Establish Authz (authorization) style traits which can be implemented to bring authz to each object and corresponding functions
- Establish AuraeScript definitions with corresponding getters and setters such that the objects can quickly be expressed in AuraeScript