pub struct RealtimeServerEventOutputAudioBufferStarted {
pub event_id: String,
pub response_id: String,
}
Expand description
WebRTC Only: Emitted when the server begins streaming audio to the client. This event is
emitted after an audio content part has been added (response.content_part.added
)
to the response.
Learn more.
Fields§
§event_id: String
The unique ID of the server event.
response_id: String
The unique ID of the response that produced the audio.
Implementations§
Source§impl RealtimeServerEventOutputAudioBufferStarted
impl RealtimeServerEventOutputAudioBufferStarted
Sourcepub fn builder() -> RealtimeServerEventOutputAudioBufferStartedBuilder<((), ())>
pub fn builder() -> RealtimeServerEventOutputAudioBufferStartedBuilder<((), ())>
Create a builder for building RealtimeServerEventOutputAudioBufferStarted
.
On the builder, call .event_id(...)
, .response_id(...)
to set the values of the fields.
Finally, call .build()
to create the instance of RealtimeServerEventOutputAudioBufferStarted
.
Trait Implementations§
Source§impl Clone for RealtimeServerEventOutputAudioBufferStarted
impl Clone for RealtimeServerEventOutputAudioBufferStarted
Source§fn clone(&self) -> RealtimeServerEventOutputAudioBufferStarted
fn clone(&self) -> RealtimeServerEventOutputAudioBufferStarted
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 RealtimeServerEventOutputAudioBufferStarted
impl<'de> Deserialize<'de> for RealtimeServerEventOutputAudioBufferStarted
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 RealtimeServerEventOutputAudioBufferStarted
impl PartialEq for RealtimeServerEventOutputAudioBufferStarted
Source§fn eq(&self, other: &RealtimeServerEventOutputAudioBufferStarted) -> bool
fn eq(&self, other: &RealtimeServerEventOutputAudioBufferStarted) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for RealtimeServerEventOutputAudioBufferStarted
Auto Trait Implementations§
impl Freeze for RealtimeServerEventOutputAudioBufferStarted
impl RefUnwindSafe for RealtimeServerEventOutputAudioBufferStarted
impl Send for RealtimeServerEventOutputAudioBufferStarted
impl Sync for RealtimeServerEventOutputAudioBufferStarted
impl Unpin for RealtimeServerEventOutputAudioBufferStarted
impl UnwindSafe for RealtimeServerEventOutputAudioBufferStarted
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