Struct aws_sdk_connect::types::ChatEvent
source · #[non_exhaustive]pub struct ChatEvent {
pub type: ChatEventType,
pub content_type: Option<String>,
pub content: Option<String>,
}Expand description
Chat integration event containing payload to perform different chat actions such as:
-
Sending a chat message
-
Sending a chat event, such as typing
-
Disconnecting from a chat
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.type: ChatEventTypeType of chat integration event.
content_type: Option<String>Type of content. This is required when Type is MESSAGE or EVENT.
-
For allowed message content types, see the
ContentTypeparameter in the SendMessage topic in the Amazon Connect Participant Service API Reference. -
For allowed event content types, see the
ContentTypeparameter in the SendEvent topic in the Amazon Connect Participant Service API Reference.
content: Option<String>Content of the message or event. This is required when Type is MESSAGE and for certain ContentTypes when Type is EVENT.
-
For allowed message content, see the
Contentparameter in the SendMessage topic in the Amazon Connect Participant Service API Reference. -
For allowed event content, see the
Contentparameter in the SendEvent topic in the Amazon Connect Participant Service API Reference.
Implementations§
source§impl ChatEvent
impl ChatEvent
sourcepub fn type(&self) -> &ChatEventType
pub fn type(&self) -> &ChatEventType
Type of chat integration event.
sourcepub fn content_type(&self) -> Option<&str>
pub fn content_type(&self) -> Option<&str>
Type of content. This is required when Type is MESSAGE or EVENT.
-
For allowed message content types, see the
ContentTypeparameter in the SendMessage topic in the Amazon Connect Participant Service API Reference. -
For allowed event content types, see the
ContentTypeparameter in the SendEvent topic in the Amazon Connect Participant Service API Reference.
sourcepub fn content(&self) -> Option<&str>
pub fn content(&self) -> Option<&str>
Content of the message or event. This is required when Type is MESSAGE and for certain ContentTypes when Type is EVENT.
-
For allowed message content, see the
Contentparameter in the SendMessage topic in the Amazon Connect Participant Service API Reference. -
For allowed event content, see the
Contentparameter in the SendEvent topic in the Amazon Connect Participant Service API Reference.