pub struct CreateTranscriptionResponseJson {
pub text: String,
pub logprobs: Option<Vec<CreateTranscriptionResponseJsonLogprob>>,
pub usage: Option<CreateTranscriptionResponseJsonUsage>,
}
Expand description
Represents a transcription response returned by model, based on the provided input.
Fields§
§text: String
The transcribed text.
logprobs: Option<Vec<CreateTranscriptionResponseJsonLogprob>>
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<CreateTranscriptionResponseJsonUsage>
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§const fn clone_from(&mut self, source: &Self)
const 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