pub struct CreateCompletionResponse {
pub id: String,
pub object: String,
pub created: i32,
pub model: String,
pub choices: Vec<CreateCompletionResponseChoicesInner>,
pub usage: Option<Box<CreateCompletionResponseUsage>>,
}
Fields§
§id: String
§object: String
§created: i32
§model: String
§choices: Vec<CreateCompletionResponseChoicesInner>
§usage: Option<Box<CreateCompletionResponseUsage>>
Implementations§
Source§impl CreateCompletionResponse
impl CreateCompletionResponse
pub fn new( id: String, object: String, created: i32, model: String, choices: Vec<CreateCompletionResponseChoicesInner>, ) -> CreateCompletionResponse
Trait Implementations§
Source§impl Clone for CreateCompletionResponse
impl Clone for CreateCompletionResponse
Source§fn clone(&self) -> CreateCompletionResponse
fn clone(&self) -> CreateCompletionResponse
Returns a copy of the value. Read more
1.0.0 · 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 CreateCompletionResponse
impl Debug for CreateCompletionResponse
Source§impl Default for CreateCompletionResponse
impl Default for CreateCompletionResponse
Source§fn default() -> CreateCompletionResponse
fn default() -> CreateCompletionResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateCompletionResponse
impl<'de> Deserialize<'de> for CreateCompletionResponse
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 CreateCompletionResponse
impl PartialEq for CreateCompletionResponse
Source§impl Serialize for CreateCompletionResponse
impl Serialize for CreateCompletionResponse
impl StructuralPartialEq for CreateCompletionResponse
Auto Trait Implementations§
impl Freeze for CreateCompletionResponse
impl RefUnwindSafe for CreateCompletionResponse
impl Send for CreateCompletionResponse
impl Sync for CreateCompletionResponse
impl Unpin for CreateCompletionResponse
impl UnwindSafe for CreateCompletionResponse
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