Crate api_response

Source
Expand description

§API Response Library

This library provides a consistent structure for API responses, including success and error handling, with support for various serialization formats like JSON and Protobuf.

§Modules

  • meta: Contains the meta structures.
  • success: Contains the success response structures.
  • error: Contains the error handling structures.

Re-exports§

pub use prelude::*;

Modules§

error_code
prelude

Macros§

api_err
Quickly create an ApiError builder ApiErr and collect error code mode information.

Enums§

ApiResponse
Enum to represent the overall API response