pub struct ChoiceEvents {
pub generated_text: Option<String>,
pub index: i64,
pub logprobs: f64,
pub finish_reason: Option<String>,
pub delta: EventsDelta,
}Expand description
Represents the choices in a chat events response.
Fields§
§generated_text: Option<String>§index: i64§logprobs: f64§finish_reason: Option<String>§delta: EventsDeltaTrait Implementations§
Source§impl Clone for ChoiceEvents
impl Clone for ChoiceEvents
Source§fn clone(&self) -> ChoiceEvents
fn clone(&self) -> ChoiceEvents
Returns a duplicate 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 ChoiceEvents
impl Debug for ChoiceEvents
Source§impl Default for ChoiceEvents
impl Default for ChoiceEvents
Source§fn default() -> ChoiceEvents
fn default() -> ChoiceEvents
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChoiceEventswhere
ChoiceEvents: Default,
impl<'de> Deserialize<'de> for ChoiceEventswhere
ChoiceEvents: Default,
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 ChoiceEvents
impl RefUnwindSafe for ChoiceEvents
impl Send for ChoiceEvents
impl Sync for ChoiceEvents
impl Unpin for ChoiceEvents
impl UnwindSafe for ChoiceEvents
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