pub struct CompletionChoice {
pub index: u32,
pub message: OpenAIMessageResponse,
pub finish_reason: String,
}Expand description
A choice in a completion response.
Fields§
§index: u32The index of the choice.
message: OpenAIMessageResponseThe message in the choice.
finish_reason: StringThe finish reason.
Trait Implementations§
Source§impl Debug for CompletionChoice
impl Debug for CompletionChoice
Auto Trait Implementations§
impl Freeze for CompletionChoice
impl RefUnwindSafe for CompletionChoice
impl Send for CompletionChoice
impl Sync for CompletionChoice
impl Unpin for CompletionChoice
impl UnwindSafe for CompletionChoice
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