pub struct AudioPartDelta {
    pub data: Option<String>,
    pub format: Option<AudioFormat>,
    pub sample_rate: Option<u32>,
    pub channels: Option<u32>,
    pub transcript: Option<String>,
    pub id: Option<String>,
}Expand description
A delta update for an audio part, used in streaming of an audio message.
Fields§
§data: Option<String>The base64-encoded audio data.
format: Option<AudioFormat>§sample_rate: Option<u32>The sample rate of the audio. E.g. 44100, 48000.
channels: Option<u32>The number of channels of the audio. E.g. 1, 2.
transcript: Option<String>The transcript of the audio.
id: Option<String>The ID of the audio part, if applicable
Implementations§
Source§impl AudioPartDelta
 
impl AudioPartDelta
pub fn with_format(self, format: AudioFormat) -> Self
pub fn with_data(self, data: impl Into<String>) -> Self
pub fn with_sample_rate(self, sample_rate: u32) -> Self
pub fn with_channels(self, channels: u32) -> Self
pub fn with_transcript(self, transcript: impl Into<String>) -> Self
pub fn with_id(self, id: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for AudioPartDelta
 
impl Clone for AudioPartDelta
Source§fn clone(&self) -> AudioPartDelta
 
fn clone(&self) -> AudioPartDelta
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 AudioPartDelta
 
impl Debug for AudioPartDelta
Source§impl Default for AudioPartDelta
 
impl Default for AudioPartDelta
Source§fn default() -> AudioPartDelta
 
fn default() -> AudioPartDelta
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AudioPartDelta
 
impl<'de> Deserialize<'de> for AudioPartDelta
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 AudioPartDelta
 
impl PartialEq for AudioPartDelta
Source§impl Serialize for AudioPartDelta
 
impl Serialize for AudioPartDelta
impl StructuralPartialEq for AudioPartDelta
Auto Trait Implementations§
impl Freeze for AudioPartDelta
impl RefUnwindSafe for AudioPartDelta
impl Send for AudioPartDelta
impl Sync for AudioPartDelta
impl Unpin for AudioPartDelta
impl UnwindSafe for AudioPartDelta
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