pub struct AudioResponse {
pub audio_base64: Option<String>,
pub format: Option<String>,
pub size_bytes: Option<i64>,
pub model: Option<String>,
pub cost_ticks: i64,
pub request_id: String,
pub extra: HashMap<String, Value>,
}Expand description
Generic audio response used by multiple advanced audio endpoints.
Fields§
§audio_base64: Option<String>Base64-encoded audio data.
format: Option<String>Audio format (e.g. “mp3”, “wav”).
size_bytes: Option<i64>File size in bytes.
model: Option<String>Model used.
cost_ticks: i64Total cost in ticks.
request_id: StringUnique request identifier.
extra: HashMap<String, Value>Additional response fields.
Trait Implementations§
Source§impl Clone for AudioResponse
impl Clone for AudioResponse
Source§fn clone(&self) -> AudioResponse
fn clone(&self) -> AudioResponse
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 AudioResponse
impl Debug for AudioResponse
Source§impl<'de> Deserialize<'de> for AudioResponse
impl<'de> Deserialize<'de> for AudioResponse
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
Auto Trait Implementations§
impl Freeze for AudioResponse
impl RefUnwindSafe for AudioResponse
impl Send for AudioResponse
impl Sync for AudioResponse
impl Unpin for AudioResponse
impl UnsafeUnpin for AudioResponse
impl UnwindSafe for AudioResponse
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