pub struct RealtimeClientEventConversationItemDelete {
pub event_id: Option<String>,
pub item_id: String,
}
Expand description
Send this event when you want to remove any item from the conversation
history. The server will respond with a conversation.item.deleted
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 delete.
Implementations§
Source§impl RealtimeClientEventConversationItemDelete
impl RealtimeClientEventConversationItemDelete
Sourcepub fn builder() -> RealtimeClientEventConversationItemDeleteBuilder<((), ())>
pub fn builder() -> RealtimeClientEventConversationItemDeleteBuilder<((), ())>
Create a builder for building RealtimeClientEventConversationItemDelete
.
On the builder, call .event_id(...)
(optional), .item_id(...)
to set the values of the fields.
Finally, call .build()
to create the instance of RealtimeClientEventConversationItemDelete
.
Trait Implementations§
Source§impl Clone for RealtimeClientEventConversationItemDelete
impl Clone for RealtimeClientEventConversationItemDelete
Source§fn clone(&self) -> RealtimeClientEventConversationItemDelete
fn clone(&self) -> RealtimeClientEventConversationItemDelete
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 RealtimeClientEventConversationItemDelete
impl<'de> Deserialize<'de> for RealtimeClientEventConversationItemDelete
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 RealtimeClientEventConversationItemDelete
impl PartialEq for RealtimeClientEventConversationItemDelete
Source§fn eq(&self, other: &RealtimeClientEventConversationItemDelete) -> bool
fn eq(&self, other: &RealtimeClientEventConversationItemDelete) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for RealtimeClientEventConversationItemDelete
Auto Trait Implementations§
impl Freeze for RealtimeClientEventConversationItemDelete
impl RefUnwindSafe for RealtimeClientEventConversationItemDelete
impl Send for RealtimeClientEventConversationItemDelete
impl Sync for RealtimeClientEventConversationItemDelete
impl Unpin for RealtimeClientEventConversationItemDelete
impl UnwindSafe for RealtimeClientEventConversationItemDelete
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