pub struct CreateChatCompletionResponseChoiceLogprobs {
pub content: Option<Vec<ChatCompletionTokenLogprob>>,
pub refusal: Option<Vec<ChatCompletionTokenLogprob>>,
}
Expand description
Log probability information for the 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.
Implementations§
Source§impl CreateChatCompletionResponseChoiceLogprobs
impl CreateChatCompletionResponseChoiceLogprobs
Sourcepub fn builder() -> CreateChatCompletionResponseChoiceLogprobsBuilder<((), ())>
pub fn builder() -> CreateChatCompletionResponseChoiceLogprobsBuilder<((), ())>
Create a builder for building CreateChatCompletionResponseChoiceLogprobs
.
On the builder, call .content(...)
(optional), .refusal(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of CreateChatCompletionResponseChoiceLogprobs
.
Trait Implementations§
Source§impl Clone for CreateChatCompletionResponseChoiceLogprobs
impl Clone for CreateChatCompletionResponseChoiceLogprobs
Source§fn clone(&self) -> CreateChatCompletionResponseChoiceLogprobs
fn clone(&self) -> CreateChatCompletionResponseChoiceLogprobs
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 Default for CreateChatCompletionResponseChoiceLogprobs
impl Default for CreateChatCompletionResponseChoiceLogprobs
Source§fn default() -> CreateChatCompletionResponseChoiceLogprobs
fn default() -> CreateChatCompletionResponseChoiceLogprobs
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateChatCompletionResponseChoiceLogprobs
impl<'de> Deserialize<'de> for CreateChatCompletionResponseChoiceLogprobs
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 CreateChatCompletionResponseChoiceLogprobs
impl PartialEq for CreateChatCompletionResponseChoiceLogprobs
Source§fn eq(&self, other: &CreateChatCompletionResponseChoiceLogprobs) -> bool
fn eq(&self, other: &CreateChatCompletionResponseChoiceLogprobs) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for CreateChatCompletionResponseChoiceLogprobs
Auto Trait Implementations§
impl Freeze for CreateChatCompletionResponseChoiceLogprobs
impl RefUnwindSafe for CreateChatCompletionResponseChoiceLogprobs
impl Send for CreateChatCompletionResponseChoiceLogprobs
impl Sync for CreateChatCompletionResponseChoiceLogprobs
impl Unpin for CreateChatCompletionResponseChoiceLogprobs
impl UnwindSafe for CreateChatCompletionResponseChoiceLogprobs
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