bson/object_id

Types

pub opaque type ObjectId

Functions

pub fn compare(a: ObjectId, b: ObjectId) -> Order
pub fn from_bit_string(id: BitString) -> Result(ObjectId, Nil)
pub fn from_int_list(id: List(Int)) -> Result(ObjectId, Nil)
pub fn from_string(id: String) -> Result(ObjectId, Nil)
pub fn get_timestamp(id: ObjectId) -> Int
pub fn new() -> ObjectId
pub fn to_bit_string(id: ObjectId) -> BitString
pub fn to_int_list(id: ObjectId) -> List(Int)
pub fn to_string(id: ObjectId) -> String
Search Document