pub struct RealtimeClientEventInputAudioBufferClear {
pub event_id: Option<String>,
}
Expand description
Send this event to clear the audio bytes in the buffer. The server will
respond with an input_audio_buffer.cleared
event.
Fields§
§event_id: Option<String>
Optional client-generated ID used to identify this event.
Implementations§
Source§impl RealtimeClientEventInputAudioBufferClear
impl RealtimeClientEventInputAudioBufferClear
Sourcepub fn builder() -> RealtimeClientEventInputAudioBufferClearBuilder<((),)>
pub fn builder() -> RealtimeClientEventInputAudioBufferClearBuilder<((),)>
Create a builder for building RealtimeClientEventInputAudioBufferClear
.
On the builder, call .event_id(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of RealtimeClientEventInputAudioBufferClear
.
Trait Implementations§
Source§impl Clone for RealtimeClientEventInputAudioBufferClear
impl Clone for RealtimeClientEventInputAudioBufferClear
Source§fn clone(&self) -> RealtimeClientEventInputAudioBufferClear
fn clone(&self) -> RealtimeClientEventInputAudioBufferClear
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 RealtimeClientEventInputAudioBufferClear
impl Default for RealtimeClientEventInputAudioBufferClear
Source§fn default() -> RealtimeClientEventInputAudioBufferClear
fn default() -> RealtimeClientEventInputAudioBufferClear
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RealtimeClientEventInputAudioBufferClear
impl<'de> Deserialize<'de> for RealtimeClientEventInputAudioBufferClear
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 RealtimeClientEventInputAudioBufferClear
impl PartialEq for RealtimeClientEventInputAudioBufferClear
Source§fn eq(&self, other: &RealtimeClientEventInputAudioBufferClear) -> bool
fn eq(&self, other: &RealtimeClientEventInputAudioBufferClear) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for RealtimeClientEventInputAudioBufferClear
Auto Trait Implementations§
impl Freeze for RealtimeClientEventInputAudioBufferClear
impl RefUnwindSafe for RealtimeClientEventInputAudioBufferClear
impl Send for RealtimeClientEventInputAudioBufferClear
impl Sync for RealtimeClientEventInputAudioBufferClear
impl Unpin for RealtimeClientEventInputAudioBufferClear
impl UnwindSafe for RealtimeClientEventInputAudioBufferClear
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