Struct aws_sdk_connect::types::NewSessionDetails
source · #[non_exhaustive]pub struct NewSessionDetails {
pub supported_messaging_content_types: Option<Vec<String>>,
pub participant_details: Option<ParticipantDetails>,
pub attributes: Option<HashMap<String, String>>,
pub streaming_configuration: Option<ChatStreamingConfiguration>,
}
Expand description
Payload of chat properties to apply when starting a new contact.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.supported_messaging_content_types: Option<Vec<String>>
The supported chat message content types. Supported types are text/plain
, text/markdown
, application/json
, application/vnd.amazonaws.connect.message.interactive
, and application/vnd.amazonaws.connect.message.interactive.response
.
Content types must always contain text/plain
. You can then put any other supported type in the list. For example, all the following lists are valid because they contain text/plain
: [text/plain, text/markdown, application/json]
, [text/markdown, text/plain]
, [text/plain, application/json, application/vnd.amazonaws.connect.message.interactive.response]
.
participant_details: Option<ParticipantDetails>
The customer's details.
attributes: Option<HashMap<String, String>>
A custom key-value pair using an attribute map. The attributes are standard Amazon Connect attributes. They can be accessed in flows just like any other contact attributes.
There can be up to 32,768 UTF-8 bytes across all key-value pairs per contact. Attribute keys can include only alphanumeric, dash, and underscore characters.
streaming_configuration: Option<ChatStreamingConfiguration>
The streaming configuration, such as the Amazon SNS streaming endpoint.
Implementations§
source§impl NewSessionDetails
impl NewSessionDetails
sourcepub fn supported_messaging_content_types(&self) -> &[String]
pub fn supported_messaging_content_types(&self) -> &[String]
The supported chat message content types. Supported types are text/plain
, text/markdown
, application/json
, application/vnd.amazonaws.connect.message.interactive
, and application/vnd.amazonaws.connect.message.interactive.response
.
Content types must always contain text/plain
. You can then put any other supported type in the list. For example, all the following lists are valid because they contain text/plain
: [text/plain, text/markdown, application/json]
, [text/markdown, text/plain]
, [text/plain, application/json, application/vnd.amazonaws.connect.message.interactive.response]
.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .supported_messaging_content_types.is_none()
.
sourcepub fn participant_details(&self) -> Option<&ParticipantDetails>
pub fn participant_details(&self) -> Option<&ParticipantDetails>
The customer's details.
sourcepub fn attributes(&self) -> Option<&HashMap<String, String>>
pub fn attributes(&self) -> Option<&HashMap<String, String>>
A custom key-value pair using an attribute map. The attributes are standard Amazon Connect attributes. They can be accessed in flows just like any other contact attributes.
There can be up to 32,768 UTF-8 bytes across all key-value pairs per contact. Attribute keys can include only alphanumeric, dash, and underscore characters.
sourcepub fn streaming_configuration(&self) -> Option<&ChatStreamingConfiguration>
pub fn streaming_configuration(&self) -> Option<&ChatStreamingConfiguration>
The streaming configuration, such as the Amazon SNS streaming endpoint.
source§impl NewSessionDetails
impl NewSessionDetails
sourcepub fn builder() -> NewSessionDetailsBuilder
pub fn builder() -> NewSessionDetailsBuilder
Creates a new builder-style object to manufacture NewSessionDetails
.
Trait Implementations§
source§impl Clone for NewSessionDetails
impl Clone for NewSessionDetails
source§fn clone(&self) -> NewSessionDetails
fn clone(&self) -> NewSessionDetails
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for NewSessionDetails
impl Debug for NewSessionDetails
source§impl PartialEq for NewSessionDetails
impl PartialEq for NewSessionDetails
source§fn eq(&self, other: &NewSessionDetails) -> bool
fn eq(&self, other: &NewSessionDetails) -> bool
self
and other
values to be equal, and is used
by ==
.