pub struct TranscriptTextDoneEvent {
pub text: String,
pub logprobs: Option<Vec<TranscriptTextDoneEventLogprob>>,
pub usage: Option<TranscriptTextUsageTokens>,
}
Expand description
Emitted when the transcription is complete. Contains the complete transcription text. Only emitted when you create a transcription with the Stream
parameter set to true
.
Fields§
§text: String
The text that was transcribed.
logprobs: Option<Vec<TranscriptTextDoneEventLogprob>>
The log probabilities of the individual tokens in the transcription. Only included if you create a transcription with the include[]
parameter set to logprobs
.
usage: Option<TranscriptTextUsageTokens>
Implementations§
Source§impl TranscriptTextDoneEvent
impl TranscriptTextDoneEvent
Sourcepub fn builder() -> TranscriptTextDoneEventBuilder<((), (), ())>
pub fn builder() -> TranscriptTextDoneEventBuilder<((), (), ())>
Create a builder for building TranscriptTextDoneEvent
.
On the builder, call .text(...)
, .logprobs(...)
(optional), .usage(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of TranscriptTextDoneEvent
.
Trait Implementations§
Source§impl Clone for TranscriptTextDoneEvent
impl Clone for TranscriptTextDoneEvent
Source§fn clone(&self) -> TranscriptTextDoneEvent
fn clone(&self) -> TranscriptTextDoneEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TranscriptTextDoneEvent
impl Debug for TranscriptTextDoneEvent
Source§impl<'de> Deserialize<'de> for TranscriptTextDoneEvent
impl<'de> Deserialize<'de> for TranscriptTextDoneEvent
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 TranscriptTextDoneEvent
impl PartialEq for TranscriptTextDoneEvent
Source§fn eq(&self, other: &TranscriptTextDoneEvent) -> bool
fn eq(&self, other: &TranscriptTextDoneEvent) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl Serialize for TranscriptTextDoneEvent
impl Serialize for TranscriptTextDoneEvent
impl StructuralPartialEq for TranscriptTextDoneEvent
Auto Trait Implementations§
impl Freeze for TranscriptTextDoneEvent
impl RefUnwindSafe for TranscriptTextDoneEvent
impl Send for TranscriptTextDoneEvent
impl Sync for TranscriptTextDoneEvent
impl Unpin for TranscriptTextDoneEvent
impl UnwindSafe for TranscriptTextDoneEvent
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