[][src]Module seamless::body

A collection of types and such describing the JSON body that is handed back or provided in requests to the API.

Structs

ApiBodyType

A representation of some type, including its description and shape. This is given back for anything which implements the ApiBody trait, and is automatically generated if one uses the ApiBody macro on some type.

Enums

Type

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.

Traits

ApiBody

Any type that implements this trait can be described in terms of ApiBodyType, and can potentially also be serialized or deserizlied from JSON.

Deserialize

A data structure that can be deserialized from any data format supported by Serde.

Serialize

A data structure that can be serialized into any data format supported by Serde.

Attribute Macros

ApiBody

Use this macro to generate serde Serialize/Deserialize impls in addition to an ApiBody impl that can hand back information about the shape of the type.

Derive Macros

ApiError
Deserialize
Serialize