pub struct SessionInfo {
pub id: String,
pub chat_id: Option<String>,
pub title: String,
pub model: String,
pub source: String,
pub status: String,
pub created_at: String,
pub updated_at: String,
}Expand description
Session metadata returned to frontends.
Fields§
§id: String§chat_id: Option<String>Platform chat identifier (None for GUI/TUI, Some for Bot platforms).
title: String§model: String§source: StringWhich frontend created the session: “gui” | “tui” | “qq” | “feishu”.
status: String§created_at: String§updated_at: StringTrait Implementations§
Source§impl Clone for SessionInfo
impl Clone for SessionInfo
Source§fn clone(&self) -> SessionInfo
fn clone(&self) -> SessionInfo
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 SessionInfo
impl Debug for SessionInfo
Auto Trait Implementations§
impl Freeze for SessionInfo
impl RefUnwindSafe for SessionInfo
impl Send for SessionInfo
impl Sync for SessionInfo
impl Unpin for SessionInfo
impl UnsafeUnpin for SessionInfo
impl UnwindSafe for SessionInfo
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