-
Type: New Feature
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: BSON
-
None
Given that an ObjectId is only 12 bytes, we could implement the Copy trait on it to avoid the need for explicit clones or references without sacrificing any performance.
As part of this, we can make a breaking change to update the typed accessor on Document to return an owned ObjectId instead of a reference to one and include that in the bson 2.0 release.