/// This method parses an ID that was previously stringified. This is useful in particular with
/// IDs created using `unique_id(&self)`, as these IDs need to be stored somewhere, probably as
// as a string.
///
/// A stringified object ID is a 64-digit hexadecimal number. However, not all 64-digit hex
/// numbers are valid IDs. This method will throw if it is passed an ID that was not originally
/// created by newUniqueId() or idFromName(). It will also throw if the ID was originally
/// created for a different namespace.
This method parses an ID that was previously stringified. This is useful in particular with
IDs created using `unique_id(&self)`, as these IDs need to be stored somewhere, probably as
as a string.

A stringified object ID is a 64-digit hexadecimal number. However, not all 64-digit hex
numbers are valid IDs. This method will throw if it is passed an ID that was not originally
created by newUniqueId() or idFromName(). It will also throw if the ID was originally
created for a different namespace.
This method parses an ID that was previously stringified . This is useful in particular with IDs created using ` unique_id ( &self ) ` as these IDs need to be stored somewhere probably as as a string . A stringified object ID is a 64 - digit hexadecimal number . However not all 64 - digit hex numbers are valid IDs . This method will throw if it is passed an ID that was not originally created by newUniqueId () or idFromName () . It will also throw if the ID was originally created for a different namespace .
pub fn id_from_string(&self, hex_id: &str) -> Result<ObjectId> {
        self.inner
            .id_from_string_internal(hex_id)
            .map_err(Error::from)
            .map(|id| ObjectId {
                inner: id,
                namespace: Some(self),
            })
    }
pub fn id_from_string ( & self , hex_id : & str ) -> Result < ObjectId > { self . inner . id_from_string_internal ( hex_id ) . map_err ( Error :: from ) . map ( | id | ObjectId { inner : id , namespace : Some ( self ) , } ) }
This method parses an ID that was previously stringified.
This method parses an ID that was previously stringified .
&self
hex_id
&str