pub struct Conversation {
pub id: ConversationId,
pub owner: String,
pub agent: String,
pub title: String,
pub archived: bool,
pub selected_family_id: Option<FamilyId>,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub messages: Vec<Message>,
}Expand description
A conversation and its complete model-visible message history.
Fields§
§id: ConversationId§owner: StringStable external identity, for example telegram:<user_id>.
agent: String§title: StringUser-editable display name. Defaults when reading older conversation files.
archived: boolWhether the conversation is hidden from the default conversation list.
selected_family_id: Option<FamilyId>Family explicitly selected for this conversation; absent in legacy records.
created_at: DateTime<Utc>§updated_at: DateTime<Utc>§messages: Vec<Message>Trait Implementations§
Source§impl Clone for Conversation
impl Clone for Conversation
Source§impl Debug for Conversation
impl Debug for Conversation
Source§impl<'de> Deserialize<'de> for Conversation
impl<'de> Deserialize<'de> for Conversation
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 Conversation
impl RefUnwindSafe for Conversation
impl Send for Conversation
impl Sync for Conversation
impl Unpin for Conversation
impl UnsafeUnpin for Conversation
impl UnwindSafe for Conversation
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