A Rust library to interact with RFC 8959 secret-token URIs.
See the RFC text for motivation and details.
There used to be a separate validation function provided in the library, but since the
validation process needs to do the full decoding anyway that could lead to the library used in
a suboptimal fashion. If you want to merely validate a piece of data use
decode() and see if
Some(_) (URI valid) or
None (URI invalid).
The URI scheme with colon, for convenience.
The URI scheme used.
Decodes the secret-token URI into a secret.
Encodes the secret into the secret-token URI.