-
Notifications
You must be signed in to change notification settings - Fork 145
RUST-1748 Convert UUID serde helpers to use serde_conv #579
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
Merged
JamieTsai1024
merged 70 commits into
mongodb:main
from
JamieTsai1024:RUST-1748-serde_conv-4
Jul 23, 2025
Merged
RUST-1748 Convert UUID serde helpers to use serde_conv #579
JamieTsai1024
merged 70 commits into
mongodb:main
from
JamieTsai1024:RUST-1748-serde_conv-4
Jul 23, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This reverts commit f81dfd2.
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.
just a doc fix!
isabelatkinson
approved these changes
Jul 23, 2025
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.
nice work!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Converted UUID functions in
src/serde_helpers.rs
to useserde_conv
macro for serializing and deserializing optional and vector fields withserde_with
.<T>
,Option<T>
, andVec<T>
fields (de)serialized using converter structsuuid_1_as_binary
uuid_1::AsBinary
(UUID → Timestamp)uuid_1_as_c_sharp_legacy_binary
uuid_1::AsCSharpLegacyBinary
(UUID → Binary)uuid_1_as_java_legacy_binary
uuid_1::AsJavaLegacyBinary
(UUID → Binary)uuid_1_as_python_legacy_binary
uuid_1::AsPythonLegacyBinary
(UUID → Binary)Previously:
SerializeAs
andDeserializeAs
traits to support Optional and Vector conversions in PR #559serde_conv
macro to support Rustdocs, refactored allObjectId
converters in PR #566DateTime
converters in PR #570u32
andu64
) helpers in PR #575ObjectId
converters in PR #578