our server take a request and with many rules generates a json.
for static data, we want move to enum for all things because
its great and increase simplicity and avoid locking ( in prev version
we used in-memory data structure, first load from from then store in-memory
vectors with RwLock for concurrent access )
we decision to use hierarchy of Enum because serde_json
very good and clean parse it to json.
its good way for access to static data, avoid lock, concurrent access ??
like bellow sample,
we have static data and never it change,
but we need choice and send to client or reverse
in client instead of ( send id of row in table and we get from table with locking of concurrency access ) ,
just send string, and in server serde_json very simple
parse for our,