pub struct OutputChoice {
pub index: usize,
pub message: ChatMessage,
pub logprobs: Option<()>,
pub finish_reason: Option<String>,
}Expand description
A choice in the output array (matches OpenAI response format).
Fields§
§index: usize§message: ChatMessage§logprobs: Option<()>§finish_reason: Option<String>Trait Implementations§
Source§impl Clone for OutputChoice
impl Clone for OutputChoice
Source§fn clone(&self) -> OutputChoice
fn clone(&self) -> OutputChoice
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OutputChoice
impl Debug for OutputChoice
Auto Trait Implementations§
impl Freeze for OutputChoice
impl RefUnwindSafe for OutputChoice
impl Send for OutputChoice
impl Sync for OutputChoice
impl Unpin for OutputChoice
impl UnsafeUnpin for OutputChoice
impl UnwindSafe for OutputChoice
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