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.
Structs§
- Object
Id - An implementation of the ObjectId data type as defined in the BSON specification.
Enums§
- Object
IdError - Represents an error that can occur when creating an ObjectId.
Functions§
- rand_
bytes - Return a vector (slice-able) of
lencryptographically-random bytes.