Module seamless::api [−][src]
A router implementation that can handle requests in a type safe way, while also allowing information about the routes, route descriptions and expected input and output types to be automatically generated from it.
Structs
Api | The entry point; you can create an instance of this and then add API routes to it
using |
ApiBodyInfo | A representation of some type, including its description and shape.
This is given back for anything which implements the |
ApiError | This represents an API error that is returned from the API. |
RouteBuilder | Add a new API route by providing a description (optional but encouraged) and then a handler function. |
RouteInfo | Information about a single route. |
Enums
ApiBodyType | An enum representing the shape of the JSON that is provided or output from the API. There is a straightforward mapping from this to TypeScript types. |
RouteError | A route is either not found, or we attempted to run it and ran into an issue. |
Traits
ApiBody | Any type that implements this trait can be described in terms of |
Attribute Macros
ApiBody | Use this macro to generate serde |
Derive Macros
ApiError | Use this macro to generate an |