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