pub struct ResponseObject {
pub id: String,
pub object: ObjectTrue,
pub created_at: f64,
pub status: StatusTrue,
pub error: Option<Option<String>>,
pub output: Vec<ResponseOutputMessage>,
}
Fields§
§id: String
Unique identifier for this Response
object: ObjectTrue
The object type
created_at: f64
Unix timestamp (in seconds) of when this Response was created
status: StatusTrue
Status of the response
error: Option<Option<String>>
Error message if the response failed
output: Vec<ResponseOutputMessage>
Output messages from the model
Implementations§
Source§impl ResponseObject
impl ResponseObject
pub fn new( id: String, object: ObjectTrue, created_at: f64, status: StatusTrue, output: Vec<ResponseOutputMessage>, ) -> 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 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ResponseObject
impl Debug for ResponseObject
Source§impl Default for ResponseObject
impl Default for ResponseObject
Source§fn default() -> ResponseObject
fn default() -> ResponseObject
Returns the “default value” for a type. Read more
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 PartialEq for ResponseObject
impl PartialEq for ResponseObject
Source§impl Serialize for ResponseObject
impl Serialize for ResponseObject
impl StructuralPartialEq for ResponseObject
Auto Trait Implementations§
impl Freeze for ResponseObject
impl RefUnwindSafe for ResponseObject
impl Send for ResponseObject
impl Sync for ResponseObject
impl Unpin 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