xrpl-rust
xrpl-rust copied to clipboard
Revise current models
There are some improvements need to be done to the current models for transactions and requests:
- [x] utilize
Default,PartialEq,Eq,Clonetraits - [x] split up
CurrencyintoCurrencyandAmount- [x] Currency::Xrp must have fiel name
currency
- [x] Currency::Xrp must have fiel name
- [x] add tests for serializing and deserializing models
- [x] add macro to serialize and deserialize a struct with its tag (e.g.
{"StructName": {"foo": 0, "bar": 1}})
- [x] add macro to serialize and deserialize a struct with its tag (e.g.
- [x] change impl lifetimes
- [x] cleanup
models/mod.rs(e.gStreamParametershould be inrequests/subscribe.rs) - [ ] add non-common-fields documentation
- [x] look over
request_fields.rsand move tomodels/requests - [ ] Add signing request methods with feature flag
- [x] Add ˋnewˋ methods to all models
- [x] change tests to use
new
- [x] change tests to use