Function blob_uuid::to_uuid

source ·
pub fn to_uuid(blob: &str) -> Result<Uuid, ConvertError>
Expand description

Convert a string blob back to uuid

extern crate uuid;
extern crate blob_uuid;
use uuid::Uuid;
fn main(){
 let uuid = Uuid::parse_str("557c8018-5e21-4b74-8bb0-9040e2e8ead1").unwrap();
 assert_eq!(uuid, blob_uuid::to_uuid("VXyAGF4hS3SLsJBA4ujq0Q").unwrap());
}