pub struct RealtimeServerEventResponseOutputItemAdded {
pub event_id: String,
pub response_id: String,
pub output_index: i64,
pub item: RealtimeConversationItem,
}Expand description
Returned when a new Item is created during Response generation.
Fields§
§event_id: StringThe unique ID of the server event.
response_id: StringThe ID of the Response to which the item belongs.
output_index: i64The index of the output item in the Response.
item: RealtimeConversationItemImplementations§
Source§impl RealtimeServerEventResponseOutputItemAdded
impl RealtimeServerEventResponseOutputItemAdded
Sourcepub fn builder() -> RealtimeServerEventResponseOutputItemAddedBuilder<((), (), (), ())>
pub fn builder() -> RealtimeServerEventResponseOutputItemAddedBuilder<((), (), (), ())>
Create a builder for building RealtimeServerEventResponseOutputItemAdded.
On the builder, call .event_id(...), .response_id(...), .output_index(...), .item(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of RealtimeServerEventResponseOutputItemAdded.
Trait Implementations§
Source§impl Clone for RealtimeServerEventResponseOutputItemAdded
impl Clone for RealtimeServerEventResponseOutputItemAdded
Source§fn clone(&self) -> RealtimeServerEventResponseOutputItemAdded
fn clone(&self) -> RealtimeServerEventResponseOutputItemAdded
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 RealtimeServerEventResponseOutputItemAdded
impl<'de> Deserialize<'de> for RealtimeServerEventResponseOutputItemAdded
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 RealtimeServerEventResponseOutputItemAdded
impl PartialEq for RealtimeServerEventResponseOutputItemAdded
Source§fn eq(&self, other: &RealtimeServerEventResponseOutputItemAdded) -> bool
fn eq(&self, other: &RealtimeServerEventResponseOutputItemAdded) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RealtimeServerEventResponseOutputItemAdded
Auto Trait Implementations§
impl Freeze for RealtimeServerEventResponseOutputItemAdded
impl RefUnwindSafe for RealtimeServerEventResponseOutputItemAdded
impl Send for RealtimeServerEventResponseOutputItemAdded
impl Sync for RealtimeServerEventResponseOutputItemAdded
impl Unpin for RealtimeServerEventResponseOutputItemAdded
impl UnwindSafe for RealtimeServerEventResponseOutputItemAdded
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