pub struct ConversationItemCreateEvent {
pub item: ConversationItem,
pub type_: String,
pub event_id: Option<String>,
pub previous_item_id: Option<String>,
}Expand description
Add a new Item to the Conversation’s context, including messages, function
Fields§
§item: ConversationItemA single item within a Realtime conversation.
type_: StringThe event type, must be conversation.item.create.
event_id: Option<String>Optional client-generated ID used to identify this event.
previous_item_id: Option<String>The ID of the preceding item after which the new item will be inserted.
Trait Implementations§
Source§impl Clone for ConversationItemCreateEvent
impl Clone for ConversationItemCreateEvent
Source§fn clone(&self) -> ConversationItemCreateEvent
fn clone(&self) -> ConversationItemCreateEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConversationItemCreateEvent
impl Debug for ConversationItemCreateEvent
Source§impl<'de> Deserialize<'de> for ConversationItemCreateEvent
impl<'de> Deserialize<'de> for ConversationItemCreateEvent
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
Auto Trait Implementations§
impl Freeze for ConversationItemCreateEvent
impl RefUnwindSafe for ConversationItemCreateEvent
impl Send for ConversationItemCreateEvent
impl Sync for ConversationItemCreateEvent
impl Unpin for ConversationItemCreateEvent
impl UnsafeUnpin for ConversationItemCreateEvent
impl UnwindSafe for ConversationItemCreateEvent
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