pub struct RealtimeClientEventConversationItemCreate {
pub event_id: Option<String>,
pub previous_item_id: Option<String>,
pub item: RealtimeConversationItem,
}Available on crate feature
realtime only.Fields§
§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.
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.
item: RealtimeConversationItemA single item within a Realtime conversation.
Trait Implementations§
Source§impl Clone for RealtimeClientEventConversationItemCreate
impl Clone for RealtimeClientEventConversationItemCreate
Source§fn clone(&self) -> RealtimeClientEventConversationItemCreate
fn clone(&self) -> RealtimeClientEventConversationItemCreate
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 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
Source§impl From<RealtimeClientEventConversationItemCreate> for Message
impl From<RealtimeClientEventConversationItemCreate> for Message
Source§fn from(value: RealtimeClientEventConversationItemCreate) -> Self
fn from(value: RealtimeClientEventConversationItemCreate) -> Self
Converts to this type from the input type.
Source§impl From<RealtimeClientEventConversationItemCreate> for RealtimeClientEvent
impl From<RealtimeClientEventConversationItemCreate> for RealtimeClientEvent
Source§fn from(value: RealtimeClientEventConversationItemCreate) -> Self
fn from(value: RealtimeClientEventConversationItemCreate) -> Self
Converts to this type from the input type.
Source§impl From<RealtimeConversationItem> for RealtimeClientEventConversationItemCreate
impl From<RealtimeConversationItem> for RealtimeClientEventConversationItemCreate
Source§fn from(value: RealtimeConversationItem) -> Self
fn from(value: RealtimeConversationItem) -> Self
Converts to this type from the input type.
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