pub struct ChatSessionResource {
pub id: String,
pub object: String,
pub expires_at: i64,
pub client_secret: String,
pub workflow: ChatkitWorkflow,
pub user: String,
pub rate_limits: ChatSessionRateLimits,
pub max_requests_per_1_minute: i32,
pub status: ChatSessionStatus,
pub chatkit_configuration: ChatSessionChatkitConfiguration,
}Expand description
Represents a ChatKit session and its resolved configuration.
Fields§
§id: StringIdentifier for the ChatKit session.
object: StringType discriminator that is always chatkit.session.
expires_at: i64Unix timestamp (in seconds) for when the session expires.
client_secret: StringEphemeral client secret that authenticates session requests.
workflow: ChatkitWorkflowWorkflow metadata for the session.
user: StringUser identifier associated with the session.
rate_limits: ChatSessionRateLimitsResolved rate limit values.
max_requests_per_1_minute: i32Convenience copy of the per-minute request limit.
status: ChatSessionStatusCurrent lifecycle state of the session.
chatkit_configuration: ChatSessionChatkitConfigurationResolved ChatKit feature configuration for the session.
Trait Implementations§
Source§impl Clone for ChatSessionResource
impl Clone for ChatSessionResource
Source§fn clone(&self) -> ChatSessionResource
fn clone(&self) -> ChatSessionResource
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 ChatSessionResource
impl Debug for ChatSessionResource
Source§impl<'de> Deserialize<'de> for ChatSessionResource
impl<'de> Deserialize<'de> for ChatSessionResource
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 ChatSessionResource
impl PartialEq for ChatSessionResource
Source§impl Serialize for ChatSessionResource
impl Serialize for ChatSessionResource
impl StructuralPartialEq for ChatSessionResource
Auto Trait Implementations§
impl Freeze for ChatSessionResource
impl RefUnwindSafe for ChatSessionResource
impl Send for ChatSessionResource
impl Sync for ChatSessionResource
impl Unpin for ChatSessionResource
impl UnwindSafe for ChatSessionResource
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