#[non_exhaustive]pub struct ChatKitThread {
pub id: String,
pub object: String,
pub created_at: u64,
pub title: Option<String>,
pub status: Value,
pub user: String,
/* private fields */
}Expand description
EN: ChatKit thread returned by the ChatKit beta API. 中文:ChatKit beta API 返回的 ChatKit thread。
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: StringEN: Identifier for the ChatKit thread. 中文:ChatKit thread 标识符。
object: StringEN: API object type, normally chatkit.thread.
中文:API 对象类型,通常为 chatkit.thread。
created_at: u64EN: Unix timestamp for when the thread was created. 中文:thread 创建时间的 Unix 时间戳。
title: Option<String>EN: Optional human-readable thread title. 中文:可选的人类可读 thread 标题。
status: ValueEN: Current status object for the thread. 中文:thread 当前状态对象。
user: StringEN: End-user identifier that owns the thread. 中文:拥有该 thread 的最终用户标识符。
Implementations§
Source§impl ChatKitThread
impl ChatKitThread
Sourcepub fn request_id(&self) -> Option<&RequestId>
pub fn request_id(&self) -> Option<&RequestId>
EN: Returns the OpenAI request id, when present. 中文:返回 OpenAI 请求 ID,如存在。
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 (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 ChatKitThread
impl Debug for ChatKitThread
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
Source§impl PartialEq for ChatKitThread
impl PartialEq for ChatKitThread
Source§fn eq(&self, other: &ChatKitThread) -> bool
fn eq(&self, other: &ChatKitThread) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ChatKitThread
impl Serialize for ChatKitThread
impl StructuralPartialEq for ChatKitThread
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