pub struct CreateTranscriptionResponseJson {
    pub text: String,
    pub logprobs: Option<Vec<Item>>,
    pub usage: Option<Usage>,
}Expand description
Represents a transcription response returned by model, based on the provided input.
Fields§
§text: StringThe transcribed text.
logprobs: Option<Vec<Item>>The log probabilities of the tokens in the transcription. Only returned with the models gpt-4o-transcribe and gpt-4o-mini-transcribe if logprobs is added to the include array.
usage: Option<Usage>Token usage statistics for the request.
Implementations§
Source§impl CreateTranscriptionResponseJson
 
impl CreateTranscriptionResponseJson
Sourcepub fn builder() -> CreateTranscriptionResponseJsonBuilder<((), (), ())>
 
pub fn builder() -> CreateTranscriptionResponseJsonBuilder<((), (), ())>
Create a builder for building CreateTranscriptionResponseJson.
On the builder, call .text(...), .logprobs(...)(optional), .usage(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of CreateTranscriptionResponseJson.
Trait Implementations§
Source§impl Clone for CreateTranscriptionResponseJson
 
impl Clone for CreateTranscriptionResponseJson
Source§fn clone(&self) -> CreateTranscriptionResponseJson
 
fn clone(&self) -> CreateTranscriptionResponseJson
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<'de> Deserialize<'de> for CreateTranscriptionResponseJson
 
impl<'de> Deserialize<'de> for CreateTranscriptionResponseJson
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 CreateTranscriptionResponseJson
 
impl PartialEq for CreateTranscriptionResponseJson
Source§fn eq(&self, other: &CreateTranscriptionResponseJson) -> bool
 
fn eq(&self, other: &CreateTranscriptionResponseJson) -> bool
Tests for 
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CreateTranscriptionResponseJson
Auto Trait Implementations§
impl Freeze for CreateTranscriptionResponseJson
impl RefUnwindSafe for CreateTranscriptionResponseJson
impl Send for CreateTranscriptionResponseJson
impl Sync for CreateTranscriptionResponseJson
impl Unpin for CreateTranscriptionResponseJson
impl UnwindSafe for CreateTranscriptionResponseJson
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