pub enum ChatOrigin {
User,
Fork {
chat: Uri,
turn_id: String,
},
Tool {
chat: Uri,
tool_call_id: String,
},
Unknown(Value),
}Expand description
How a chat came into existence.
Variants§
User
Created directly by a user.
Fork
Forked from a specific turn of another chat.
Fields
Tool
Spawned by a tool call in another chat.
Fields
Unknown(Value)
Unknown or future variant — preserved as raw JSON for round-trip fidelity. Reducers treat this as a no-op.
Trait Implementations§
Source§impl Clone for ChatOrigin
impl Clone for ChatOrigin
Source§fn clone(&self) -> ChatOrigin
fn clone(&self) -> ChatOrigin
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 ChatOrigin
impl Debug for ChatOrigin
Source§impl<'de> Deserialize<'de> for ChatOrigin
impl<'de> Deserialize<'de> for ChatOrigin
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 ChatOrigin
impl PartialEq for ChatOrigin
Source§fn eq(&self, other: &ChatOrigin) -> bool
fn eq(&self, other: &ChatOrigin) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ChatOrigin
impl Serialize for ChatOrigin
impl StructuralPartialEq for ChatOrigin
Auto Trait Implementations§
impl Freeze for ChatOrigin
impl RefUnwindSafe for ChatOrigin
impl Send for ChatOrigin
impl Sync for ChatOrigin
impl Unpin for ChatOrigin
impl UnsafeUnpin for ChatOrigin
impl UnwindSafe for ChatOrigin
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