pub struct Thread {
pub id: ThreadId,
pub tenant_id: TenantId,
pub user_id: UserId,
pub title: Option<String>,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub deleted_at: Option<DateTime<Utc>>,
}Expand description
A conversation thread containing messages
Fields§
§id: ThreadIdUnique thread identifier
tenant_id: TenantIdTenant for multi-tenancy
user_id: UserIdUser who owns this thread
title: Option<String>Optional thread title (auto-generated from first message)
created_at: DateTime<Utc>When the thread was created
updated_at: DateTime<Utc>When the thread was last updated
deleted_at: Option<DateTime<Utc>>Soft delete timestamp (None = active)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Thread
impl<'de> Deserialize<'de> for Thread
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 Thread
impl RefUnwindSafe for Thread
impl Send for Thread
impl Sync for Thread
impl Unpin for Thread
impl UnsafeUnpin for Thread
impl UnwindSafe for Thread
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