pub struct TranscriptTextDoneEventLogprob {
pub token: Option<String>,
pub logprob: Option<f64>,
pub bytes: Option<Vec<u64>>,
}
Fields§
§token: Option<String>
The token that was used to generate the log probability.
logprob: Option<f64>
The log probability of the token.
bytes: Option<Vec<u64>>
The bytes that were used to generate the log probability.
Implementations§
Source§impl TranscriptTextDoneEventLogprob
impl TranscriptTextDoneEventLogprob
Sourcepub fn builder() -> TranscriptTextDoneEventLogprobBuilder<((), (), ())>
pub fn builder() -> TranscriptTextDoneEventLogprobBuilder<((), (), ())>
Create a builder for building TranscriptTextDoneEventLogprob
.
On the builder, call .token(...)
(optional), .logprob(...)
(optional), .bytes(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of TranscriptTextDoneEventLogprob
.
Trait Implementations§
Source§impl Clone for TranscriptTextDoneEventLogprob
impl Clone for TranscriptTextDoneEventLogprob
Source§fn clone(&self) -> TranscriptTextDoneEventLogprob
fn clone(&self) -> TranscriptTextDoneEventLogprob
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 TranscriptTextDoneEventLogprob
impl Default for TranscriptTextDoneEventLogprob
Source§fn default() -> TranscriptTextDoneEventLogprob
fn default() -> TranscriptTextDoneEventLogprob
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TranscriptTextDoneEventLogprob
impl<'de> Deserialize<'de> for TranscriptTextDoneEventLogprob
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 TranscriptTextDoneEventLogprob
impl PartialEq for TranscriptTextDoneEventLogprob
Source§fn eq(&self, other: &TranscriptTextDoneEventLogprob) -> bool
fn eq(&self, other: &TranscriptTextDoneEventLogprob) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for TranscriptTextDoneEventLogprob
Auto Trait Implementations§
impl Freeze for TranscriptTextDoneEventLogprob
impl RefUnwindSafe for TranscriptTextDoneEventLogprob
impl Send for TranscriptTextDoneEventLogprob
impl Sync for TranscriptTextDoneEventLogprob
impl Unpin for TranscriptTextDoneEventLogprob
impl UnwindSafe for TranscriptTextDoneEventLogprob
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