find_by_string_id

Function find_by_string_id 

Source
pub async fn find_by_string_id<T>(
    id: &str,
    collection_name: &str,
    db: &Database,
) -> Result<Option<T>, Error>
where for<'a> T: Serialize + Deserialize<'a>,