pub struct ChatSummary {
pub id: String,
pub title: String,
pub updated_at: i64,
pub pinned_at: Option<i64>,
pub busy: bool,
pub workspace: Option<String>,
}Expand description
A chat as shown in the sidebar.
Fields§
§id: String§title: String§updated_at: i64Milliseconds since the Unix epoch of the last activity; the list is ordered by it.
pinned_at: Option<i64>When it was pinned (ms since the epoch), if it is. Pinned chats list first.
busy: boolA reply is running in this chat.
workspace: Option<String>The workspace it belongs to.
Implementations§
Source§impl ChatSummary
impl ChatSummary
pub fn cursor(&self) -> ChatCursor
Trait Implementations§
Source§impl Clone for ChatSummary
impl Clone for ChatSummary
Source§impl Debug for ChatSummary
impl Debug for ChatSummary
Source§impl<'de> Deserialize<'de> for ChatSummary
impl<'de> Deserialize<'de> for ChatSummary
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
impl Eq for ChatSummary
Source§impl PartialEq for ChatSummary
impl PartialEq for ChatSummary
Source§impl Serialize for ChatSummary
impl Serialize for ChatSummary
impl StructuralPartialEq for ChatSummary
Auto Trait Implementations§
impl Forget for ChatSummary
impl Freeze for ChatSummary
impl Move for ChatSummary
impl RefUnwindSafe for ChatSummary
impl Send for ChatSummary
impl Sync for ChatSummary
impl Unpin for ChatSummary
impl UnsafeUnpin for ChatSummary
impl UnwindSafe for ChatSummary
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