pub struct RealtimeClientEventConversationItemCreate {
pub event_id: Option<String>,
pub item: RealtimeConversationItem,
pub previous_item_id: Option<String>,
pub _type: String,
}
Fields§
§event_id: Option<String>
Optional client-generated ID used to identify this event.
item: RealtimeConversationItem
§previous_item_id: Option<String>
The ID of the preceding item after which the new item will be inserted. If not set, the new item will be appended to the end of the conversation. If set to root
, the new item will be added to the beginning of the conversation. If set to an existing ID, it allows an item to be inserted mid-conversation. If the ID cannot be found, an error will be returned and the item will not be added.
_type: String
The event type, must be conversation.item.create
.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RealtimeClientEventConversationItemCreate
impl<'de> Deserialize<'de> for RealtimeClientEventConversationItemCreate
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 RealtimeClientEventConversationItemCreate
impl RefUnwindSafe for RealtimeClientEventConversationItemCreate
impl Send for RealtimeClientEventConversationItemCreate
impl Sync for RealtimeClientEventConversationItemCreate
impl Unpin for RealtimeClientEventConversationItemCreate
impl UnwindSafe for RealtimeClientEventConversationItemCreate
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