pub struct ChatCompletionResponseMessageAudio {
pub id: String,
pub expires_at: u64,
pub data: String,
pub transcript: String,
}
Expand description
If the audio output modality is requested, this object contains data about the audio response from the model. Learn more.
Fields§
§id: String
Unique identifier for this audio response.
expires_at: u64
The Unix timestamp (in seconds) for when this audio response will no longer be accessible on the server for use in multi-turn conversations.
data: String
Base64 encoded audio bytes generated by the model, in the format specified in the request.
transcript: String
Transcript of the audio generated by the model.
Implementations§
Source§impl ChatCompletionResponseMessageAudio
impl ChatCompletionResponseMessageAudio
Sourcepub fn builder() -> ChatCompletionResponseMessageAudioBuilder<((), (), (), ())>
pub fn builder() -> ChatCompletionResponseMessageAudioBuilder<((), (), (), ())>
Create a builder for building ChatCompletionResponseMessageAudio
.
On the builder, call .id(...)
, .expires_at(...)
, .data(...)
, .transcript(...)
to set the values of the fields.
Finally, call .build()
to create the instance of ChatCompletionResponseMessageAudio
.
Trait Implementations§
Source§impl Clone for ChatCompletionResponseMessageAudio
impl Clone for ChatCompletionResponseMessageAudio
Source§fn clone(&self) -> ChatCompletionResponseMessageAudio
fn clone(&self) -> ChatCompletionResponseMessageAudio
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 ChatCompletionResponseMessageAudio
impl<'de> Deserialize<'de> for ChatCompletionResponseMessageAudio
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 ChatCompletionResponseMessageAudio
impl PartialEq for ChatCompletionResponseMessageAudio
Source§fn eq(&self, other: &ChatCompletionResponseMessageAudio) -> bool
fn eq(&self, other: &ChatCompletionResponseMessageAudio) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ChatCompletionResponseMessageAudio
Auto Trait Implementations§
impl Freeze for ChatCompletionResponseMessageAudio
impl RefUnwindSafe for ChatCompletionResponseMessageAudio
impl Send for ChatCompletionResponseMessageAudio
impl Sync for ChatCompletionResponseMessageAudio
impl Unpin for ChatCompletionResponseMessageAudio
impl UnwindSafe for ChatCompletionResponseMessageAudio
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