#[non_exhaustive]pub struct CreateChatKitSessionRequest {
pub workflow: ChatKitWorkflowParam,
pub user: String,
pub expires_after: Option<ChatKitSessionExpiration>,
pub rate_limits: Option<ChatKitSessionRateLimitOverrides>,
pub chatkit_configuration: Option<Value>,
}Expand description
EN: Request body for POST /v1/chatkit/sessions.
中文:POST /v1/chatkit/sessions 的请求体。
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.workflow: ChatKitWorkflowParamEN: Workflow that powers the session. 中文:驱动 session 的 workflow。
user: StringEN: End-user identifier for the session. 中文:session 的最终用户标识符。
expires_after: Option<ChatKitSessionExpiration>EN: Optional session expiration override. 中文:可选的 session 过期时间覆盖。
rate_limits: Option<ChatKitSessionRateLimitOverrides>EN: Optional request rate limit overrides. 中文:可选的请求速率限制覆盖。
chatkit_configuration: Option<Value>EN: Optional ChatKit runtime configuration overrides. 中文:可选的 ChatKit 运行时配置覆盖。
Implementations§
Source§impl CreateChatKitSessionRequest
impl CreateChatKitSessionRequest
Sourcepub fn builder() -> CreateChatKitSessionRequestBuilder
pub fn builder() -> CreateChatKitSessionRequestBuilder
EN: Returns a builder for ChatKit session create requests. 中文:返回 ChatKit session 创建请求构建器。
Trait Implementations§
Source§impl Clone for CreateChatKitSessionRequest
impl Clone for CreateChatKitSessionRequest
Source§fn clone(&self) -> CreateChatKitSessionRequest
fn clone(&self) -> CreateChatKitSessionRequest
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 CreateChatKitSessionRequest
impl Debug for CreateChatKitSessionRequest
Source§impl PartialEq for CreateChatKitSessionRequest
impl PartialEq for CreateChatKitSessionRequest
Source§fn eq(&self, other: &CreateChatKitSessionRequest) -> bool
fn eq(&self, other: &CreateChatKitSessionRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CreateChatKitSessionRequest
Auto Trait Implementations§
impl Freeze for CreateChatKitSessionRequest
impl RefUnwindSafe for CreateChatKitSessionRequest
impl Send for CreateChatKitSessionRequest
impl Sync for CreateChatKitSessionRequest
impl Unpin for CreateChatKitSessionRequest
impl UnsafeUnpin for CreateChatKitSessionRequest
impl UnwindSafe for CreateChatKitSessionRequest
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