-
Notifications
You must be signed in to change notification settings - Fork 128
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
BSON likes Strings and hates u32/usize #70
Labels
Comments
I can reproduce your error in my environment. the
As you can see, The problem is that BSON doesn't support unsigned type. |
zonyitoo
added a commit
that referenced
this issue
May 21, 2017
zonyitoo
added a commit
that referenced
this issue
May 21, 2017
zonyitoo
added a commit
that referenced
this issue
May 22, 2017
zonyitoo
added a commit
that referenced
this issue
May 30, 2017
* [#70] Disallow serde serialize/deserialize unsigned integer types * add compat mod for backward compatibility * Added breaking changes in README
lrlna
pushed a commit
to lrlna/bson-rs
that referenced
this issue
Feb 27, 2019
* [mongodb#70] Disallow serde serialize/deserialize unsigned integer types * add compat mod for backward compatibility * Added breaking changes in README
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello. I have struct
And I write it to mongodb
And later I read:
Part of mongo document
If id of
struct Award
is String, all works, but if id is u32 or usize I getInvalidType("u32")
Note that Display trait for this error writes only
usize
,u32
without any description likeInvalidType:usize
UPD. Struct initialization in exemple gets &'static str instead String. This code do not works!
Cargo.toml
i32,i64 works. I guess, bson hates unsigned types.
The text was updated successfully, but these errors were encountered: