pub struct RealtimeServerEventOutputAudioBufferStopped {
pub event_id: String,
pub response_id: String,
}
Expand description
WebRTC Only: Emitted when the output audio buffer has been completely drained on the server,
and no more audio is forthcoming. This event is emitted after the full response
data has been sent to the client (response.done
).
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 RealtimeServerEventOutputAudioBufferStopped
impl RealtimeServerEventOutputAudioBufferStopped
Sourcepub fn builder() -> RealtimeServerEventOutputAudioBufferStoppedBuilder<((), ())>
pub fn builder() -> RealtimeServerEventOutputAudioBufferStoppedBuilder<((), ())>
Create a builder for building RealtimeServerEventOutputAudioBufferStopped
.
On the builder, call .event_id(...)
, .response_id(...)
to set the values of the fields.
Finally, call .build()
to create the instance of RealtimeServerEventOutputAudioBufferStopped
.
Trait Implementations§
Source§impl Clone for RealtimeServerEventOutputAudioBufferStopped
impl Clone for RealtimeServerEventOutputAudioBufferStopped
Source§fn clone(&self) -> RealtimeServerEventOutputAudioBufferStopped
fn clone(&self) -> RealtimeServerEventOutputAudioBufferStopped
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 RealtimeServerEventOutputAudioBufferStopped
impl<'de> Deserialize<'de> for RealtimeServerEventOutputAudioBufferStopped
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 RealtimeServerEventOutputAudioBufferStopped
impl PartialEq for RealtimeServerEventOutputAudioBufferStopped
Source§fn eq(&self, other: &RealtimeServerEventOutputAudioBufferStopped) -> bool
fn eq(&self, other: &RealtimeServerEventOutputAudioBufferStopped) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for RealtimeServerEventOutputAudioBufferStopped
Auto Trait Implementations§
impl Freeze for RealtimeServerEventOutputAudioBufferStopped
impl RefUnwindSafe for RealtimeServerEventOutputAudioBufferStopped
impl Send for RealtimeServerEventOutputAudioBufferStopped
impl Sync for RealtimeServerEventOutputAudioBufferStopped
impl Unpin for RealtimeServerEventOutputAudioBufferStopped
impl UnwindSafe for RealtimeServerEventOutputAudioBufferStopped
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