Creates a new URType from the provided type string.
The UR type as a string
Checks equality with another URType based on the type string.
Returns the string representation.
StaticfromCreates a URType from a string, throwing an error if invalid.
The UR type string
A new URType instance
StatictrySafely creates a URType, returning an error if invalid.
The UR type string
Either a URType or an error
Represents a UR (Uniform Resource) type identifier.
Valid UR types contain only lowercase letters, digits, and hyphens.
Example