Expand description
WAE Types - WAE 框架的基础类型定义
提供统一的错误类型、计费维度和工具函数。
作为微服务优先框架的基础层,所有类型都设计为:
- 异步友好:支持 tokio 运行时
- 序列化就绪:支持 JSON/MessagePack 等格式
- 零拷贝:最小化数据复制
Macros§
Structs§
- Billing
Cost Config - 四元矩阵成本配置
- Billing
Dimensions - 计费维度
- Cloud
Error - 云服务错误类型
- Decimal
Decimalrepresents a 128 bit representation of a fixed-precision decimal number. The finite set of values of typeDecimalare of the form m / 10e, where m is an integer such that -296 < m < 296, and e is an integer between 0 and 28 inclusive.- Image
Cost - 图像成本定义 (每百万像素)
- Text
Cost - 文本成本定义 (每百万 Tokens/字符)
- WaeError
- WAE 错误类型
Enums§
- Database
Error Kind - 数据库错误类型
- Error
Kind - 错误类型标识
- Network
Error Kind - 网络错误类型
- Storage
Error Kind - 存储错误类型
- Validation
Error Kind - 验证错误类型
- Value
- 动态值类型
Functions§
- format_
slug - Common helper to format display names or slugs
- hex_
decode - 将十六进制字符串解码为字节数组
- hex_
encode - 将字节数组编码为十六进制字符串
- truncate_
str - Common helper to truncate strings for logging
- url_
decode - URL 解码字符串
- url_
encode - URL 编码字符串
Type Aliases§
- Cloud
Result - 云服务结果类型
- WaeResult
- WAE 结果类型