pub fn validate_uuid_input(id: &str) -> Result {
    if let Err(err) = uuid::Uuid::parse_str(id) {
        println!("{} [input: {}]", err, id);
        return Err(Error::InvalidUuid.into());
    }
    Ok(())
}
/// Throws an error if UUID isn't properly input
Throws an error if UUID isn't properly input
Throws an error if UUID isn ' t properly input
pub fn validate_uuid_input(id: &str) -> Result {
    if let Err(err) = uuid::Uuid::parse_str(id) {
        println!("{} [input: {}]", err, id);
        return Err(Error::InvalidUuid.into());
    }
    Ok(())
}
pub fn validate_uuid_input ( id : & str ) -> Result { if let Err ( err ) = uuid :: Uuid :: parse_str ( id ) { println ! ( " " err id ) ; return Err ( Error :: InvalidUuid . into ( ) ) ; } Ok ( ( ) ) }
Throws an error if UUID isn't properly input
Throws an error if UUID isn ' t properly input
id
&str
id
&str