pub struct Response {
pub id: String,
pub created_at: Option<u64>,
pub object: String,
pub model: Option<String>,
pub status: Option<String>,
pub error: Option<ResponseError>,
pub incomplete_details: Option<ResponseIncompleteDetails>,
pub metadata: Option<BTreeMap<String, String>>,
pub output: Vec<ResponseOutputItem>,
pub usage: Option<ResponseUsage>,
pub extra: BTreeMap<String, Value>,
}Expand description
表示 Responses 对象。
Fields§
§id: String响应 ID。
created_at: Option<u64>创建时间。
object: String对象类型。
model: Option<String>模型 ID。
status: Option<String>状态。
error: Option<ResponseError>错误信息。
incomplete_details: Option<ResponseIncompleteDetails>不完整原因。
metadata: Option<BTreeMap<String, String>>元数据。
output: Vec<ResponseOutputItem>输出项。
usage: Option<ResponseUsage>用量统计。
extra: BTreeMap<String, Value>额外字段。
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Response
impl<'de> Deserialize<'de> for Response
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnsafeUnpin for Response
impl UnwindSafe for Response
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more