pub struct TextCompletionResponse {
pub id: Option<String>,
pub object: Option<String>,
pub created: Option<i32>,
pub model: Option<String>,
pub choices: Option<Vec<TextCompletionChoice>>,
pub usage: Option<TextCompletionUsage>,
}
Fields§
§id: Option<String>
§object: Option<String>
§created: Option<i32>
§model: Option<String>
§choices: Option<Vec<TextCompletionChoice>>
§usage: Option<TextCompletionUsage>
Trait Implementations§
Source§impl Debug for TextCompletionResponse
impl Debug for TextCompletionResponse
Source§impl<'de> Deserialize<'de> for TextCompletionResponse
impl<'de> Deserialize<'de> for TextCompletionResponse
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 Display for TextCompletionResponse
impl Display for TextCompletionResponse
Auto Trait Implementations§
impl Freeze for TextCompletionResponse
impl RefUnwindSafe for TextCompletionResponse
impl Send for TextCompletionResponse
impl Sync for TextCompletionResponse
impl Unpin for TextCompletionResponse
impl UnwindSafe for TextCompletionResponse
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