-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
refactor(rust): Replace DynArgs
with an enum containing all its variants
#18746
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #18746 +/- ##
==========================================
- Coverage 79.86% 79.86% -0.01%
==========================================
Files 1517 1517
Lines 205542 205533 -9
Branches 2892 2892
==========================================
- Hits 164156 164146 -10
- Misses 40838 40839 +1
Partials 548 548 ☔ View full report in Codecov by Sentry. |
Hey @3ok. Thanks for the PR. Your conclusion is right. We need to support serde. I only think we should do that on a different manner. I think we should get rid of |
71eacbb
to
0042b00
Compare
Serialize
and Deserialize
for RollingOptionsFixedWindow
and RollingOptionsDynamicWindow
DynArgs
with an enum containing all its variants
0042b00
to
4ada469
Compare
Hi @ritchie46, thanks for the feedback.
I have added a new enum |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
This PR presents one way to fix #18595.
Information present in
DynArgs
was being lost after a serialization/deserialization roundtrip, so I had to implementSerialize
andDeserialize
in order to handle them.This is my first contribution so I'm pretty excited about that!