pub struct NonStreamingChoice {
pub logprobs: Option<LogProbs>,
pub finish_reason: Option<String>,
pub native_finish_reason: Option<String>,
pub index: usize,
pub message: Message,
pub error: Option<Error>,
}
Expand description
A non‑streaming chat choice, which carries a complete message.
Fields§
§logprobs: Option<LogProbs>
§finish_reason: Option<String>
§native_finish_reason: Option<String>
§index: usize
§message: Message
§error: Option<Error>
Trait Implementations§
Source§impl Clone for NonStreamingChoice
impl Clone for NonStreamingChoice
Source§fn clone(&self) -> NonStreamingChoice
fn clone(&self) -> NonStreamingChoice
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 NonStreamingChoice
impl Debug for NonStreamingChoice
Source§impl<'de> Deserialize<'de> for NonStreamingChoice
impl<'de> Deserialize<'de> for NonStreamingChoice
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 NonStreamingChoice
impl PartialEq for NonStreamingChoice
impl StructuralPartialEq for NonStreamingChoice
Auto Trait Implementations§
impl Freeze for NonStreamingChoice
impl RefUnwindSafe for NonStreamingChoice
impl Send for NonStreamingChoice
impl Sync for NonStreamingChoice
impl Unpin for NonStreamingChoice
impl UnwindSafe for NonStreamingChoice
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