pub struct ChatCompletionChoice {
pub index: i64,
pub message: ChatCompletionMessageForResponse,
pub finish_reason: Option<FinishReason>,
pub finish_details: Option<FinishDetails>,
}
Expand description
Represents a choice in a chat completion response.
Fields§
§index: i64
Index of the choice.
message: ChatCompletionMessageForResponse
Message corresponding to the choice.
finish_reason: Option<FinishReason>
Reason for finishing the response.
finish_details: Option<FinishDetails>
Additional details for the finish reason.
Trait Implementations§
Source§impl Debug for ChatCompletionChoice
impl Debug for ChatCompletionChoice
Source§impl<'de> Deserialize<'de> for ChatCompletionChoice
impl<'de> Deserialize<'de> for ChatCompletionChoice
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
Auto Trait Implementations§
impl Freeze for ChatCompletionChoice
impl RefUnwindSafe for ChatCompletionChoice
impl Send for ChatCompletionChoice
impl Sync for ChatCompletionChoice
impl Unpin for ChatCompletionChoice
impl UnwindSafe for ChatCompletionChoice
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