pub struct ConversationAppend {
pub conversation_id: ConversationId,
pub expected_version: ConversationVersion,
pub messages: Vec<Message>,
}Expand description
Idempotent transcript append with optimistic concurrency control.
Fields§
§conversation_id: ConversationIdTarget conversation.
expected_version: ConversationVersionVersion loaded before model execution.
messages: Vec<Message>Canonical user, assistant, and tool messages to append atomically.
Trait Implementations§
Source§impl Clone for ConversationAppend
impl Clone for ConversationAppend
Source§fn clone(&self) -> ConversationAppend
fn clone(&self) -> ConversationAppend
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 ConversationAppend
impl Debug for ConversationAppend
Source§impl<'de> Deserialize<'de> for ConversationAppend
impl<'de> Deserialize<'de> for ConversationAppend
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 ConversationAppend
impl PartialEq for ConversationAppend
Source§impl Serialize for ConversationAppend
impl Serialize for ConversationAppend
impl StructuralPartialEq for ConversationAppend
Auto Trait Implementations§
impl Freeze for ConversationAppend
impl RefUnwindSafe for ConversationAppend
impl Send for ConversationAppend
impl Sync for ConversationAppend
impl Unpin for ConversationAppend
impl UnsafeUnpin for ConversationAppend
impl UnwindSafe for ConversationAppend
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