pub struct BetaChatkitThreadsResource { /* private fields */ }Expand description
Beta ChatKit Threads 资源。
Implementations§
Source§impl BetaChatkitThreadsResource
impl BetaChatkitThreadsResource
Sourcepub fn retrieve(
&self,
thread_id: impl Into<String>,
) -> JsonRequestBuilder<ChatKitThread>
pub fn retrieve( &self, thread_id: impl Into<String>, ) -> JsonRequestBuilder<ChatKitThread>
获取 chatkit thread。
Sourcepub fn list(&self) -> ListRequestBuilder<ChatKitThread>
pub fn list(&self) -> ListRequestBuilder<ChatKitThread>
列出 chatkit threads。
Sourcepub fn list_items(
&self,
thread_id: impl Into<String>,
) -> ListRequestBuilder<ChatKitThreadItem>
pub fn list_items( &self, thread_id: impl Into<String>, ) -> ListRequestBuilder<ChatKitThreadItem>
列出 chatkit thread items。
Sourcepub fn delete(
&self,
thread_id: impl Into<String>,
) -> JsonRequestBuilder<DeleteResponse>
pub fn delete( &self, thread_id: impl Into<String>, ) -> JsonRequestBuilder<DeleteResponse>
删除 chatkit thread。
Trait Implementations§
Source§impl Clone for BetaChatkitThreadsResource
impl Clone for BetaChatkitThreadsResource
Source§fn clone(&self) -> BetaChatkitThreadsResource
fn clone(&self) -> BetaChatkitThreadsResource
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 moreAuto Trait Implementations§
impl Freeze for BetaChatkitThreadsResource
impl !RefUnwindSafe for BetaChatkitThreadsResource
impl Send for BetaChatkitThreadsResource
impl Sync for BetaChatkitThreadsResource
impl Unpin for BetaChatkitThreadsResource
impl UnsafeUnpin for BetaChatkitThreadsResource
impl !UnwindSafe for BetaChatkitThreadsResource
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