Module prelude

Source

Re-exports§

pub use crate::ApiResponse;
pub use crate::error_code;
pub use crate::error_code::ety_grpc;

Macros§

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

Structs§

ApiError
Struct to represent error information
Cost
Cost and cost statistics.
DefaultMeta
Default meta type
ErrWrapper
ErrorResponse
Struct to represent an error response
Pagination
Pagination information.
RateLimit
Rate limiting information.
SuccessResponse
Struct to represent a successful response
UserMeta
The user’s permission information and so on.

Enums§

MaybeString

Traits§

ApiSuccessResponse
Deserialize
A data structure that can be deserialized from any data format supported by Serde.
DeserializeOwned
A data structure that can be deserialized without borrowing any data from the deserializer.
IntoError
Serialize
A data structure that can be serialized into any data format supported by Serde.

Type Aliases§

ApiResult

Derive Macros§

Deserialize
Serialize