pub struct ChatKitThread {
pub id: String,
pub created_at: Option<u64>,
pub object: String,
pub status: Option<ChatKitThreadStatus>,
pub title: Option<String>,
pub user: Option<String>,
pub extra: BTreeMap<String, Value>,
}Expand description
表示 ChatKit thread 对象。
Fields§
§id: Stringthread ID。
created_at: Option<u64>创建时间。
object: String对象类型。
status: Option<ChatKitThreadStatus>thread 状态。
title: Option<String>标题。
user: Option<String>用户标识。
extra: BTreeMap<String, Value>额外字段。
Trait Implementations§
Source§impl Clone for ChatKitThread
impl Clone for ChatKitThread
Source§fn clone(&self) -> ChatKitThread
fn clone(&self) -> ChatKitThread
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 ChatKitThread
impl Debug for ChatKitThread
Source§impl Default for ChatKitThread
impl Default for ChatKitThread
Source§fn default() -> ChatKitThread
fn default() -> ChatKitThread
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChatKitThread
impl<'de> Deserialize<'de> for ChatKitThread
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 ChatKitThread
impl RefUnwindSafe for ChatKitThread
impl Send for ChatKitThread
impl Sync for ChatKitThread
impl Unpin for ChatKitThread
impl UnsafeUnpin for ChatKitThread
impl UnwindSafe for ChatKitThread
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