sephynox / xrpl-rust

A 100% Rust library to interact with the XRPL. XRPL Grant Winner
https://crates.io/crates/xrpl-rust
ISC License
20 stars 8 forks source link

Revise models #72

Closed LimpidCrypto closed 1 year ago

LimpidCrypto commented 1 year ago

High Level Overview of Change

This PR utilizes Cow for all &'a str types in the models. It also uses String instead of Cow for structs that utilize the serde_with_tag macro as it caused lifetime issues with serde::Deserialize. This may change back as soon as we found a solution for this issue.

Context of Change

The lifetime issue is one I encountered during #71 development. We use String in favor of #71.

Type of Change