Crate rustwt [−] [src]
Welcome to rustwt - A battaries included JWT library for rust.
Getting started
If you just want to create jwt or id tokens, use the id_token module. If you want to create a custom token (with just verification), use the Encoder and Decoder structs.
Modules
id_token |
Structs
Decoder |
Basic structure for decoding JWT. |
Encoder |
Low level structure for encoding JWT. Use this struct if you want to have full control over the payload used for your JWT. In most scenarios, you are better of using id_token though. |
Header |
Struct representing a JWT Header. |
Number |
Represents a JSON number, whether integer or floating point. |
Enums
Algorithm |
Enum representing JWT signature algorithms. |
Error |
Enum representing Encoding/Decoding errors. |
Value |
Represents any valid JSON value. |
Type Definitions
Payload |