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