You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am trying to use Mongo and Bson derived traits while having some of the fields remain handled by serde in order to have customized serialization/de-serialization for that field.
Due to a lack of derive testing unsurprisingly there are bugs... This
one was due to `#[bson(serde)]` not being correctly handled when
creating derived `Update` structures #6. This should now be fixed.
Thanks for raising this and providing a replication example, good spot. This is due to a lack of derive testing. I believe I have a fix and am going to get that pushed live now with a patch bump. I have tested it with the following example:
Hi, I am trying to use Mongo and Bson derived traits while having some of the fields remain handled by serde in order to have customized serialization/de-serialization for that field.
I have a very basic example here:
Unfortunately, this fails to compile due to 'no field
serde_attr
on typemy_doc::Update
'.If I remove the update attribute, then this compiles, but the model will not implement the AsUpdate or Update traits. Is this expected? Thanks!
The text was updated successfully, but these errors were encountered: