pub fn uuid_to_name(uuid: &str) -> Result<String, Error> {
    match Uuid::parse_str(uuid) {
        Ok(uuid) => Ok(format!("nexus-{}", uuid.to_hyphenated().to_string())),
        Err(_) => Err(Error::InvalidUuid {
            uuid: uuid.to_owned(),
        }),
    }
}
/// Convert the UUID to a nexus name in the form of "nexus-{uuid}".
/// Return error if the UUID is not valid.
Convert the UUID to a nexus name in the form of "nexus-{uuid}".
Return error if the UUID is not valid.
Convert the UUID to a nexus name in the form of " nexus - { uuid } " . Return error if the UUID is not valid .
pub fn uuid_to_name(uuid: &str) -> Result<String, Error> {
    match Uuid::parse_str(uuid) {
        Ok(uuid) => Ok(format!("nexus-{}", uuid.to_hyphenated().to_string())),
        Err(_) => Err(Error::InvalidUuid {
            uuid: uuid.to_owned(),
        }),
    }
}
pub fn uuid_to_name ( uuid : & str ) -> Result < String , Error > { match Uuid :: parse_str ( uuid ) { Ok ( uuid ) => Ok ( format ! ( " " uuid to_hyphenated ( ) to_string ( ) ) ) , Err ( _ ) => Err ( Error :: InvalidUuid { uuid : uuid . to_owned ( ) , } ) , } }
Convert the UUID to a nexus name in the form of "nexus-{uuid}".
Convert the UUID to a nexus name in the form of " nexus - { uuid } " .
uuid
&str