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