pub struct CreateSessionDto {
pub name: Option<String>,
pub status: Option<StatusTrue>,
pub expiration_seconds: Option<f64>,
pub assistant_id: Option<String>,
pub assistant: Option<CreateAssistantDto>,
pub messages: Option<Vec<MessageArrayInner>>,
pub customer: Option<CreateCustomerDto>,
pub phone_number_id: Option<String>,
pub phone_number: Option<ImportTwilioPhoneNumberDto>,
}
Fields§
§name: Option<String>
This is a user-defined name for the session. Maximum length is 40 characters.
status: Option<StatusTrue>
This is the current status of the session. Can be either ‘active’ or ‘completed’.
expiration_seconds: Option<f64>
Session expiration time in seconds. Defaults to 24 hours (86400 seconds) if not set.
assistant_id: Option<String>
This is the ID of the assistant associated with this session. Use this when referencing an existing assistant.
assistant: Option<CreateAssistantDto>
This is the assistant configuration for this session. Use this when creating a new assistant configuration. If assistantId is provided, this will be ignored.
messages: Option<Vec<MessageArrayInner>>
This is an array of chat messages in the session.
customer: Option<CreateCustomerDto>
This is the customer information associated with this session.
phone_number_id: Option<String>
This is the ID of the phone number associated with this session.
phone_number: Option<ImportTwilioPhoneNumberDto>
This is the phone number configuration for this session.
Implementations§
Source§impl CreateSessionDto
impl CreateSessionDto
pub fn new() -> CreateSessionDto
Trait Implementations§
Source§impl Clone for CreateSessionDto
impl Clone for CreateSessionDto
Source§fn clone(&self) -> CreateSessionDto
fn clone(&self) -> CreateSessionDto
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CreateSessionDto
impl Debug for CreateSessionDto
Source§impl Default for CreateSessionDto
impl Default for CreateSessionDto
Source§fn default() -> CreateSessionDto
fn default() -> CreateSessionDto
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateSessionDto
impl<'de> Deserialize<'de> for CreateSessionDto
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 CreateSessionDto
impl PartialEq for CreateSessionDto
Source§impl Serialize for CreateSessionDto
impl Serialize for CreateSessionDto
impl StructuralPartialEq for CreateSessionDto
Auto Trait Implementations§
impl Freeze for CreateSessionDto
impl RefUnwindSafe for CreateSessionDto
impl Send for CreateSessionDto
impl Sync for CreateSessionDto
impl Unpin for CreateSessionDto
impl UnwindSafe for CreateSessionDto
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