pub struct ChatKitThreadsResource { /* private fields */ }Expand description
EN: ChatKit Threads beta API resource. 中文:ChatKit Threads beta API 资源。
Implementations§
Source§impl ChatKitThreadsResource
impl ChatKitThreadsResource
Sourcepub async fn list(&self) -> Result<ChatKitThreadPage, LingerError>
pub async fn list(&self) -> Result<ChatKitThreadPage, LingerError>
EN: Lists ChatKit threads with GET /v1/chatkit/threads.
中文:使用 GET /v1/chatkit/threads 列出 ChatKit threads。
Sourcepub async fn list_items(
&self,
thread_id: &str,
) -> Result<ChatKitThreadItemPage, LingerError>
pub async fn list_items( &self, thread_id: &str, ) -> Result<ChatKitThreadItemPage, LingerError>
EN: Lists items for a ChatKit thread with GET /v1/chatkit/threads/{thread_id}/items.
中文:使用 GET /v1/chatkit/threads/{thread_id}/items 列出 ChatKit thread items。
Sourcepub async fn retrieve(
&self,
thread_id: &str,
) -> Result<ChatKitThread, LingerError>
pub async fn retrieve( &self, thread_id: &str, ) -> Result<ChatKitThread, LingerError>
EN: Retrieves a ChatKit thread with GET /v1/chatkit/threads/{thread_id}.
中文:使用 GET /v1/chatkit/threads/{thread_id} 获取 ChatKit thread。
Sourcepub async fn delete(
&self,
thread_id: &str,
) -> Result<ChatKitThreadDeletion, LingerError>
pub async fn delete( &self, thread_id: &str, ) -> Result<ChatKitThreadDeletion, LingerError>
EN: Deletes a ChatKit thread with DELETE /v1/chatkit/threads/{thread_id}.
中文:使用 DELETE /v1/chatkit/threads/{thread_id} 删除 ChatKit thread。
Trait Implementations§
Source§impl Clone for ChatKitThreadsResource
impl Clone for ChatKitThreadsResource
Source§fn clone(&self) -> ChatKitThreadsResource
fn clone(&self) -> ChatKitThreadsResource
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for ChatKitThreadsResource
impl !UnwindSafe for ChatKitThreadsResource
impl Freeze for ChatKitThreadsResource
impl Send for ChatKitThreadsResource
impl Sync for ChatKitThreadsResource
impl Unpin for ChatKitThreadsResource
impl UnsafeUnpin for ChatKitThreadsResource
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