pub struct TranscriptTextDoneEvent {
pub text: String,
pub logprobs: Option<Vec<TranscriptTextDoneEventLogprob>>,
}
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
.
Implementations§
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§fn clone_from(&mut self, source: &Self)
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§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