pub struct RealtimeClientEventOutputAudioBufferClear {
pub event_id: Option<String>,
}
Expand description
WebRTC Only: Emit to cut off the current audio response. This will trigger the server to
stop generating audio and emit a output_audio_buffer.cleared
event. This
event should be preceded by a response.cancel
client event to stop the
generation of the current response.
Learn more.
Fields§
§event_id: Option<String>
The unique ID of the client event used for error handling.
Implementations§
Source§impl RealtimeClientEventOutputAudioBufferClear
impl RealtimeClientEventOutputAudioBufferClear
Sourcepub fn builder() -> RealtimeClientEventOutputAudioBufferClearBuilder<((),)>
pub fn builder() -> RealtimeClientEventOutputAudioBufferClearBuilder<((),)>
Create a builder for building RealtimeClientEventOutputAudioBufferClear
.
On the builder, call .event_id(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of RealtimeClientEventOutputAudioBufferClear
.
Trait Implementations§
Source§impl Clone for RealtimeClientEventOutputAudioBufferClear
impl Clone for RealtimeClientEventOutputAudioBufferClear
Source§fn clone(&self) -> RealtimeClientEventOutputAudioBufferClear
fn clone(&self) -> RealtimeClientEventOutputAudioBufferClear
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 Default for RealtimeClientEventOutputAudioBufferClear
impl Default for RealtimeClientEventOutputAudioBufferClear
Source§fn default() -> RealtimeClientEventOutputAudioBufferClear
fn default() -> RealtimeClientEventOutputAudioBufferClear
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RealtimeClientEventOutputAudioBufferClear
impl<'de> Deserialize<'de> for RealtimeClientEventOutputAudioBufferClear
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 RealtimeClientEventOutputAudioBufferClear
impl PartialEq for RealtimeClientEventOutputAudioBufferClear
Source§fn eq(&self, other: &RealtimeClientEventOutputAudioBufferClear) -> bool
fn eq(&self, other: &RealtimeClientEventOutputAudioBufferClear) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for RealtimeClientEventOutputAudioBufferClear
Auto Trait Implementations§
impl Freeze for RealtimeClientEventOutputAudioBufferClear
impl RefUnwindSafe for RealtimeClientEventOutputAudioBufferClear
impl Send for RealtimeClientEventOutputAudioBufferClear
impl Sync for RealtimeClientEventOutputAudioBufferClear
impl Unpin for RealtimeClientEventOutputAudioBufferClear
impl UnwindSafe for RealtimeClientEventOutputAudioBufferClear
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