ProstUuid new-type wrapper around uuid::Uuid with prost::Message implemented for it.
How to use it
Create a protobuf file for uuid (will be provided out-of-the-box in future release):
syntax = "proto3";
package uuid;
message Uuid {
string uuid_str = 1;
}
and use it in your own protobuf:
message User {
uuid.Uuid id = 1;
string email = 2;
}
in Rust code you will be able to use ProstUuid interchangably with uuid::Uuid
via different methods and dereferencing: