pub struct RealtimeClientEventConversationItemRetrieve {
pub event_id: Option<String>,
pub item_id: String,
}
Expand description
Send this event when you want to retrieve the server’s representation of a specific item in the conversation history. This is useful, for example, to inspect user audio after noise cancellation and VAD.
The server will respond with a conversation.item.retrieved
event,
unless the item does not exist in the conversation history, in which case the
server will respond with an error.
Fields§
§event_id: Option<String>
Optional client-generated ID used to identify this event.
item_id: String
The ID of the item to retrieve.
Implementations§
Source§impl RealtimeClientEventConversationItemRetrieve
impl RealtimeClientEventConversationItemRetrieve
Sourcepub fn builder() -> RealtimeClientEventConversationItemRetrieveBuilder<((), ())>
pub fn builder() -> RealtimeClientEventConversationItemRetrieveBuilder<((), ())>
Create a builder for building RealtimeClientEventConversationItemRetrieve
.
On the builder, call .event_id(...)
(optional), .item_id(...)
to set the values of the fields.
Finally, call .build()
to create the instance of RealtimeClientEventConversationItemRetrieve
.
Trait Implementations§
Source§impl Clone for RealtimeClientEventConversationItemRetrieve
impl Clone for RealtimeClientEventConversationItemRetrieve
Source§fn clone(&self) -> RealtimeClientEventConversationItemRetrieve
fn clone(&self) -> RealtimeClientEventConversationItemRetrieve
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 RealtimeClientEventConversationItemRetrieve
impl<'de> Deserialize<'de> for RealtimeClientEventConversationItemRetrieve
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 RealtimeClientEventConversationItemRetrieve
impl PartialEq for RealtimeClientEventConversationItemRetrieve
Source§fn eq(&self, other: &RealtimeClientEventConversationItemRetrieve) -> bool
fn eq(&self, other: &RealtimeClientEventConversationItemRetrieve) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for RealtimeClientEventConversationItemRetrieve
Auto Trait Implementations§
impl Freeze for RealtimeClientEventConversationItemRetrieve
impl RefUnwindSafe for RealtimeClientEventConversationItemRetrieve
impl Send for RealtimeClientEventConversationItemRetrieve
impl Sync for RealtimeClientEventConversationItemRetrieve
impl Unpin for RealtimeClientEventConversationItemRetrieve
impl UnwindSafe for RealtimeClientEventConversationItemRetrieve
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