pub trait Response {
// Required methods
fn content(&self) -> Result<&str>;
fn created(&self) -> SystemTime;
}Expand description
响应 trait,为 DeepSeek API 响应提供统一的访问接口
这个 trait 定义了所有响应类型都应该实现的基本操作, 使得用户可以以一致的方式处理不同类型的响应。
pub trait Response {
// Required methods
fn content(&self) -> Result<&str>;
fn created(&self) -> SystemTime;
}响应 trait,为 DeepSeek API 响应提供统一的访问接口
这个 trait 定义了所有响应类型都应该实现的基本操作, 使得用户可以以一致的方式处理不同类型的响应。