Custom UUID based on time
No, that is not one of the five standard-compliant ways to generate a UUID.  What you have written is just an obfuscated concatenation of a timestamp and a random number.

The easiest way might be to use the MySQL UUID() function instead of generating the UUID in Rust.