-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Request: NaiveMoney #66
Comments
I think the decision to have the currency type be static was a mistake. |
agreed I was hoping to use this library, but its not usable in any system that needs to deal with arbitrary money values - for example I have money amounts coming from protocol buffers that encode a currency code and a string value - there is no way to use this data with this library |
I was also hoping to use this library, but it seems to lack Perhaps the real issue for my use, is that |
It would be a useful abstraction to allow an unknown-currency
NaiveMoney
type that works as follows:NaiveMoney
can only be constructed and converted to aMoney<C>
In the abstract, this would be for any data structure that needs to store N monetary values where the currency type is determined dynamically from some other source.
As a concrete use case, I'd like to use this to represent
MONEY
from Postgres in SQLx.Thoughts?
The text was updated successfully, but these errors were encountered: