pub struct RealtimeServerEventInputAudioBufferCommitted {
pub event_id: String,
pub previous_item_id: String,
pub item_id: String,
}
Expand description
Returned when an input audio buffer is committed, either by the client or
automatically in server VAD mode. The item_id
property is the ID of the user
message item that will be created, thus a conversation.item.created
event
will also be sent to the client.
Fields§
§event_id: String
The unique ID of the server event.
previous_item_id: String
The ID of the preceding item after which the new item will be inserted.
item_id: String
The ID of the user message item that will be created.
Implementations§
Source§impl RealtimeServerEventInputAudioBufferCommitted
impl RealtimeServerEventInputAudioBufferCommitted
Sourcepub fn builder() -> RealtimeServerEventInputAudioBufferCommittedBuilder<((), (), ())>
pub fn builder() -> RealtimeServerEventInputAudioBufferCommittedBuilder<((), (), ())>
Create a builder for building RealtimeServerEventInputAudioBufferCommitted
.
On the builder, call .event_id(...)
, .previous_item_id(...)
, .item_id(...)
to set the values of the fields.
Finally, call .build()
to create the instance of RealtimeServerEventInputAudioBufferCommitted
.
Trait Implementations§
Source§impl Clone for RealtimeServerEventInputAudioBufferCommitted
impl Clone for RealtimeServerEventInputAudioBufferCommitted
Source§fn clone(&self) -> RealtimeServerEventInputAudioBufferCommitted
fn clone(&self) -> RealtimeServerEventInputAudioBufferCommitted
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 RealtimeServerEventInputAudioBufferCommitted
impl<'de> Deserialize<'de> for RealtimeServerEventInputAudioBufferCommitted
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 RealtimeServerEventInputAudioBufferCommitted
impl PartialEq for RealtimeServerEventInputAudioBufferCommitted
Source§fn eq(&self, other: &RealtimeServerEventInputAudioBufferCommitted) -> bool
fn eq(&self, other: &RealtimeServerEventInputAudioBufferCommitted) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for RealtimeServerEventInputAudioBufferCommitted
Auto Trait Implementations§
impl Freeze for RealtimeServerEventInputAudioBufferCommitted
impl RefUnwindSafe for RealtimeServerEventInputAudioBufferCommitted
impl Send for RealtimeServerEventInputAudioBufferCommitted
impl Sync for RealtimeServerEventInputAudioBufferCommitted
impl Unpin for RealtimeServerEventInputAudioBufferCommitted
impl UnwindSafe for RealtimeServerEventInputAudioBufferCommitted
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