pub struct CreateChatSessionBody {
pub workflow: WorkflowParam,
pub user: String,
pub expires_after: Option<ExpiresAfterParam>,
pub rate_limits: Option<RateLimitsParam>,
pub chatkit_configuration: Option<ChatkitConfigurationParam>,
}Expand description
Parameters for provisioning a new ChatKit session.
Fields§
§workflow: WorkflowParamWorkflow that powers the session.
user: StringA free-form string that identifies your end user; ensures this Session can access other objects that have the same user scope.
expires_after: Option<ExpiresAfterParam>Optional override for session expiration timing in seconds from creation. Defaults to 10 minutes.
rate_limits: Option<RateLimitsParam>Optional override for per-minute request limits. When omitted, defaults to 10.
chatkit_configuration: Option<ChatkitConfigurationParam>Optional overrides for ChatKit runtime configuration features
Trait Implementations§
Source§impl Clone for CreateChatSessionBody
impl Clone for CreateChatSessionBody
Source§fn clone(&self) -> CreateChatSessionBody
fn clone(&self) -> CreateChatSessionBody
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 moreSource§impl Debug for CreateChatSessionBody
impl Debug for CreateChatSessionBody
Source§impl Default for CreateChatSessionBody
impl Default for CreateChatSessionBody
Source§fn default() -> CreateChatSessionBody
fn default() -> CreateChatSessionBody
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateChatSessionBody
impl<'de> Deserialize<'de> for CreateChatSessionBody
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 CreateChatSessionBody
impl PartialEq for CreateChatSessionBody
Source§impl Serialize for CreateChatSessionBody
impl Serialize for CreateChatSessionBody
impl StructuralPartialEq for CreateChatSessionBody
Auto Trait Implementations§
impl Freeze for CreateChatSessionBody
impl RefUnwindSafe for CreateChatSessionBody
impl Send for CreateChatSessionBody
impl Sync for CreateChatSessionBody
impl Unpin for CreateChatSessionBody
impl UnwindSafe for CreateChatSessionBody
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