Skip to content

Consider adding a type-hint for Uuid #4

Description

@vegardgs-ksat

It is common to use lots of UUIDs to for different resources. It is among the only identifier I personally use where having compile-time enforced origin check would be really beneficial.

Consider adding a type-hint akin to #[string] for the Uuid type, with appropriate From<Uuid> implementations. That would greatly simplify converting into its microtype at places of origin.

If desirable, the uuid crate dependency can be locked behind a feature flag.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions