pub struct CreateChatCompletionResponseChoicesInner {
pub index: Option<i32>,
pub message: Option<Box<ChatCompletionResponseMessage>>,
pub finish_reason: Option<String>,
}
Fields§
§index: Option<i32>
§message: Option<Box<ChatCompletionResponseMessage>>
§finish_reason: Option<String>
Implementations§
Trait Implementations§
Source§impl Clone for CreateChatCompletionResponseChoicesInner
impl Clone for CreateChatCompletionResponseChoicesInner
Source§fn clone(&self) -> CreateChatCompletionResponseChoicesInner
fn clone(&self) -> CreateChatCompletionResponseChoicesInner
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 Default for CreateChatCompletionResponseChoicesInner
impl Default for CreateChatCompletionResponseChoicesInner
Source§fn default() -> CreateChatCompletionResponseChoicesInner
fn default() -> CreateChatCompletionResponseChoicesInner
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateChatCompletionResponseChoicesInner
impl<'de> Deserialize<'de> for CreateChatCompletionResponseChoicesInner
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 CreateChatCompletionResponseChoicesInner
impl PartialEq for CreateChatCompletionResponseChoicesInner
Source§fn eq(&self, other: &CreateChatCompletionResponseChoicesInner) -> bool
fn eq(&self, other: &CreateChatCompletionResponseChoicesInner) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for CreateChatCompletionResponseChoicesInner
Auto Trait Implementations§
impl Freeze for CreateChatCompletionResponseChoicesInner
impl RefUnwindSafe for CreateChatCompletionResponseChoicesInner
impl Send for CreateChatCompletionResponseChoicesInner
impl Sync for CreateChatCompletionResponseChoicesInner
impl Unpin for CreateChatCompletionResponseChoicesInner
impl UnwindSafe for CreateChatCompletionResponseChoicesInner
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