pub struct ThreadResource {
pub id: String,
pub object: String,
pub created_at: i64,
pub title: Option<String>,
pub status: ThreadStatus,
pub user: String,
pub items: Option<ThreadItemListResource>,
}Expand description
Represents a ChatKit thread and its current status.
Fields§
§id: StringIdentifier of the thread.
object: StringType discriminator that is always chatkit.thread.
created_at: i64Unix timestamp (in seconds) for when the thread was created.
title: Option<String>Optional human-readable title for the thread. Defaults to null when no title has been generated.
status: ThreadStatusCurrent status for the thread. Defaults to active for newly created threads.
user: StringFree-form string that identifies your end user who owns the thread.
items: Option<ThreadItemListResource>Thread items (only present when retrieving a thread)
Trait Implementations§
Source§impl Clone for ThreadResource
impl Clone for ThreadResource
Source§fn clone(&self) -> ThreadResource
fn clone(&self) -> ThreadResource
Returns a duplicate of the value. Read more
1.0.0 · 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 ThreadResource
impl Debug for ThreadResource
Source§impl<'de> Deserialize<'de> for ThreadResource
impl<'de> Deserialize<'de> for ThreadResource
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 ThreadResource
impl PartialEq for ThreadResource
Source§impl Serialize for ThreadResource
impl Serialize for ThreadResource
impl StructuralPartialEq for ThreadResource
Auto Trait Implementations§
impl Freeze for ThreadResource
impl RefUnwindSafe for ThreadResource
impl Send for ThreadResource
impl Sync for ThreadResource
impl Unpin for ThreadResource
impl UnwindSafe for ThreadResource
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