pub struct ChoiceLogprobs {
pub content: Option<Vec<ChatCompletionTokenLogprob>>,
pub refusal: Option<Vec<ChatCompletionTokenLogprob>>,
}Expand description
Log probability information for a choice
Fields§
§content: Option<Vec<ChatCompletionTokenLogprob>>A list of message content tokens with log probability information
refusal: Option<Vec<ChatCompletionTokenLogprob>>A list of message refusal tokens with log probability information
Trait Implementations§
Source§impl Clone for ChoiceLogprobs
impl Clone for ChoiceLogprobs
Source§fn clone(&self) -> ChoiceLogprobs
fn clone(&self) -> ChoiceLogprobs
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 ChoiceLogprobs
impl Debug for ChoiceLogprobs
Source§impl<'de> Deserialize<'de> for ChoiceLogprobs
impl<'de> Deserialize<'de> for ChoiceLogprobs
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 ChoiceLogprobs
impl RefUnwindSafe for ChoiceLogprobs
impl Send for ChoiceLogprobs
impl Sync for ChoiceLogprobs
impl Unpin for ChoiceLogprobs
impl UnwindSafe for ChoiceLogprobs
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