Struct async_openai::types::ChatChoice
source · pub struct ChatChoice {
pub index: u32,
pub message: ChatCompletionResponseMessage,
pub finish_reason: Option<String>,
}
Fields§
§index: u32
§message: ChatCompletionResponseMessage
§finish_reason: Option<String>
Trait Implementations§
source§impl Clone for ChatChoice
impl Clone for ChatChoice
source§fn clone(&self) -> ChatChoice
fn clone(&self) -> ChatChoice
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 ChatChoice
impl Debug for ChatChoice
source§impl<'de> Deserialize<'de> for ChatChoice
impl<'de> Deserialize<'de> for ChatChoice
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<ChatChoice> for ChatChoice
impl PartialEq<ChatChoice> for ChatChoice
source§fn eq(&self, other: &ChatChoice) -> bool
fn eq(&self, other: &ChatChoice) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ChatChoice
impl Serialize for ChatChoice
impl StructuralPartialEq for ChatChoice
Auto Trait Implementations§
impl RefUnwindSafe for ChatChoice
impl Send for ChatChoice
impl Sync for ChatChoice
impl Unpin for ChatChoice
impl UnwindSafe for ChatChoice
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