/// Creates a new object ID randomly. This method will never return the same ID twice, and thus
/// it is guaranteed that the object does not yet exist and has never existed at the time the
/// method returns.
Creates a new object ID randomly. This method will never return the same ID twice, and thus
it is guaranteed that the object does not yet exist and has never existed at the time the
method returns.
Creates a new object ID randomly . This method will never return the same ID twice and thus it is guaranteed that the object does not yet exist and has never existed at the time the method returns .
pub fn unique_id(&self) -> Result<ObjectId> {
        self.inner
            .new_unique_id_internal()
            .map_err(Error::from)
            .map(|id| ObjectId {
                inner: id,
                namespace: Some(self),
            })
    }
pub fn unique_id ( & self ) -> Result < ObjectId > { self . inner . new_unique_id_internal ( ) . map_err ( Error :: from ) . map ( | id | ObjectId { inner : id , namespace : Some ( self ) , } ) }
Creates a new object ID randomly.
Creates a new object ID randomly .
&self