Expand description
This crate provides an implementation of the ObjectId data type as defined in the BSON specification.
§Usage
cargo add obiduse obid::ObjectId;
// Create a new ObjectId
let id = ObjectId::new();
// Or parse an existing one
let id: ObjectId = "536f6d652073656372657420".parse().unwrap();§Features
archive: Enables serialization/deserialization using therkyvcrate.serde: Enables serialization/deserialization using theserdecrate.
Structs§
Enums§
- Object
IdError - Represents an error that can occur when creating an ObjectId.