Module aliri_braid_examples::validated [−][src]
Expand description
An example of constructing a strongly-typed wrapper around a validated string value.
The types in this module perform validation prior to allowing the type to be instantiated. If a value is invalid, then an error will be returned rather than allowing the invalid value to be constructed.
Refer to the Validator
implementation
for a given type for additional information on what is considered
a valid value for the type.
Structs
A scope token as defined in RFC6749, Section 3.3
A borrowed reference to a ScopeToken
Enums
An error indicating that the provided string is not a valid scope token