uuid-rs / uuid

Generate and parse UUIDs.

Home Page:https://www.crates.io/crates/uuid

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Request: add configuration to enable/disable deserializing different formats

stevenliebregt opened this issue · comments

It would be nice if it would be configurable to for example disable the deserialization from the simple format

Hi @stevenliebregt 👋

This is something you can do using the adapter types like Hyphenated, which will serialize using the given format. You can convert a reference to a Uuid into one of these types transparently at serialization time.

Coming back through some triage, it's been a while since there was any activity here so I'll go ahead and close this one. The adapter types are the best current way to tweak the representation of UUIDs when serializing/deserializing them.