Attribute Macros§
- ApiBody
- Use this macro to generate serde
Serialize/Deserializeimpls in addition to anApiBodyimpl that can hand back information about the shape of the type.
Derive Macros§
- ApiError
- Use this macro to generate an
Into<ApiError>implementation for your custom error type. Your custom error type needs to implementDebugandDisplayin order to deriveApiError.Displayin particular determines what the error message will be. You can then use attribtues to set the status code, and decide on whether the error message will beinternal-only orexternal.