![]() |
2 years ago | |
---|---|---|
src | 2 years ago | |
translations | 2 years ago | |
.gitignore | 2 years ago | |
Cargo.lock | 2 years ago | |
Cargo.toml | 2 years ago | |
README.md | 2 years ago | |
build.rs | 2 years ago |
Red / green for debit / credit, when balance for a budget or monthly is negative etc.
Write a struct with getters for ts (potentially with arguments when formatting things e.g. money numbers etc), and one field. Then generate the field’s type from the method names of the parent struct. With this child struct, deserialize translation files, and return the parent struct whose methods call the child’s to get the formatting etc.