pub struct ResponseObject {
pub created_at: i64,
pub error: Map<String, Value>,
pub id: String,
pub job_id: Option<String>,
pub model: String,
pub object: ResponseObjectObject,
pub output: Vec<Map<String, Value>>,
pub previous_response_id: Option<String>,
pub receipt: Option<ReceiptBody>,
pub status: ResponseObjectStatus,
pub usage: Map<String, Value>,
}Expand description
ResponseObject
JSON schema
{
"type": "object",
"required": [
"created_at",
"id",
"model",
"object",
"output",
"status"
],
"properties": {
"created_at": {
"type": "integer"
},
"error": {
"type": "object",
"additionalProperties": true
},
"id": {
"type": "string"
},
"job_id": {
"type": "string"
},
"model": {
"type": "string"
},
"object": {
"type": "string",
"enum": [
"response"
]
},
"output": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
}
},
"previous_response_id": {
"type": "string"
},
"receipt": {
"$ref": "#/components/schemas/ReceiptBody"
},
"status": {
"type": "string",
"enum": [
"completed",
"in_progress",
"failed",
"cancelled"
]
},
"usage": {
"type": "object",
"additionalProperties": true
}
},
"additionalProperties": true
}Fields§
§created_at: i64§error: Map<String, Value>§id: String§job_id: Option<String>§model: String§object: ResponseObjectObject§output: Vec<Map<String, Value>>§previous_response_id: Option<String>§receipt: Option<ReceiptBody>§status: ResponseObjectStatus§usage: Map<String, Value>Implementations§
Source§impl ResponseObject
impl ResponseObject
pub fn builder() -> ResponseObject
Trait Implementations§
Source§impl Clone for ResponseObject
impl Clone for ResponseObject
Source§fn clone(&self) -> ResponseObject
fn clone(&self) -> ResponseObject
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResponseObject
impl Debug for ResponseObject
Source§impl<'de> Deserialize<'de> for ResponseObject
impl<'de> Deserialize<'de> for ResponseObject
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
Source§impl From<ResponseObject> for ResponseObject
impl From<ResponseObject> for ResponseObject
Source§fn from(value: ResponseObject) -> Self
fn from(value: ResponseObject) -> Self
Converts to this type from the input type.
Source§impl Serialize for ResponseObject
impl Serialize for ResponseObject
Source§impl TryFrom<ResponseObject> for ResponseObject
impl TryFrom<ResponseObject> for ResponseObject
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: ResponseObject) -> Result<Self, ConversionError>
fn try_from(value: ResponseObject) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ResponseObject
impl RefUnwindSafe for ResponseObject
impl Send for ResponseObject
impl Sync for ResponseObject
impl Unpin for ResponseObject
impl UnsafeUnpin for ResponseObject
impl UnwindSafe for ResponseObject
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