pub struct ChatKitSessionsResource { /* private fields */ }Expand description
EN: ChatKit Sessions beta API resource. 中文:ChatKit Sessions beta API 资源。
Implementations§
Source§impl ChatKitSessionsResource
impl ChatKitSessionsResource
Sourcepub async fn create(
&self,
request: CreateChatKitSessionRequest,
) -> Result<ChatKitSession, LingerError>
pub async fn create( &self, request: CreateChatKitSessionRequest, ) -> Result<ChatKitSession, LingerError>
EN: Creates a ChatKit session with POST /v1/chatkit/sessions.
中文:使用 POST /v1/chatkit/sessions 创建 ChatKit session。
Sourcepub async fn cancel(
&self,
session_id: &str,
) -> Result<ChatKitSession, LingerError>
pub async fn cancel( &self, session_id: &str, ) -> Result<ChatKitSession, LingerError>
EN: Cancels a ChatKit session with POST /v1/chatkit/sessions/{session_id}/cancel.
中文:使用 POST /v1/chatkit/sessions/{session_id}/cancel 取消 ChatKit session。
Trait Implementations§
Source§impl Clone for ChatKitSessionsResource
impl Clone for ChatKitSessionsResource
Source§fn clone(&self) -> ChatKitSessionsResource
fn clone(&self) -> ChatKitSessionsResource
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 ChatKitSessionsResource
impl !UnwindSafe for ChatKitSessionsResource
impl Freeze for ChatKitSessionsResource
impl Send for ChatKitSessionsResource
impl Sync for ChatKitSessionsResource
impl Unpin for ChatKitSessionsResource
impl UnsafeUnpin for ChatKitSessionsResource
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