pub struct DeltaAudio {
pub id: String,
pub data: String,
pub expires_at: Option<i64>,
pub transcript: Option<String>,
}Expand description
Delta audio in a streaming response.
Fields§
§id: StringAudio ID
data: StringBase64 encoded audio data
expires_at: Option<i64>Expiration timestamp
transcript: Option<String>Audio transcript
Implementations§
Source§impl DeltaAudio
impl DeltaAudio
Sourcepub fn decode_data(&self) -> Result<Vec<u8>, DecodeError>
pub fn decode_data(&self) -> Result<Vec<u8>, DecodeError>
Decode the base64 audio data to bytes.
Trait Implementations§
Source§impl Clone for DeltaAudio
impl Clone for DeltaAudio
Source§fn clone(&self) -> DeltaAudio
fn clone(&self) -> DeltaAudio
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 DeltaAudio
impl Debug for DeltaAudio
Source§impl<'de> Deserialize<'de> for DeltaAudio
impl<'de> Deserialize<'de> for DeltaAudio
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 DeltaAudio
impl RefUnwindSafe for DeltaAudio
impl Send for DeltaAudio
impl Sync for DeltaAudio
impl Unpin for DeltaAudio
impl UnsafeUnpin for DeltaAudio
impl UnwindSafe for DeltaAudio
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