aws-sdk-rust icon indicating copy to clipboard operation
aws-sdk-rust copied to clipboard

[request]: Use `uuid::Uuid` instead of `String` for UUIDs

Open allan2 opened this issue 4 years ago • 1 comments
trafficstars

It would be nice if UUIDs were typed more strictly than just String. The uuid crate is ubiquitous for this purpose.

If the extra dependency is a concern, then it could be enabled as a feature in Cargo.toml. postgres has a with-uuid-0_8 feature.

allan2 avatar Nov 05 '21 17:11 allan2

hello! We actually don't have any information in the model that a field is a UUID, so unfortunately, we can't generate code to deal with this. I'd suggest using the UUID crate on strings from the SDK directly.

I'll keep this open as a feature request. Community members should feel free to upvote this issue to drive prioritization and urgency.

rcoh avatar Nov 08 '21 14:11 rcoh