Struct aws_sdk_connect::types::ChatMessage
source · #[non_exhaustive]pub struct ChatMessage {
pub content_type: String,
pub content: String,
}
Expand description
A chat message.
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.content_type: String
The type of the content. Supported types are text/plain
, text/markdown
, application/json
, and application/vnd.amazonaws.connect.message.interactive.response
.
content: String
The content of the chat message.
-
For
text/plain
andtext/markdown
, the Length Constraints are Minimum of 1, Maximum of 1024. -
For
application/json
, the Length Constraints are Minimum of 1, Maximum of 12000. -
For
application/vnd.amazonaws.connect.message.interactive.response
, the Length Constraints are Minimum of 1, Maximum of 12288.
Implementations§
source§impl ChatMessage
impl ChatMessage
sourcepub fn content_type(&self) -> &str
pub fn content_type(&self) -> &str
The type of the content. Supported types are text/plain
, text/markdown
, application/json
, and application/vnd.amazonaws.connect.message.interactive.response
.
sourcepub fn content(&self) -> &str
pub fn content(&self) -> &str
The content of the chat message.
-
For
text/plain
andtext/markdown
, the Length Constraints are Minimum of 1, Maximum of 1024. -
For
application/json
, the Length Constraints are Minimum of 1, Maximum of 12000. -
For
application/vnd.amazonaws.connect.message.interactive.response
, the Length Constraints are Minimum of 1, Maximum of 12288.
source§impl ChatMessage
impl ChatMessage
sourcepub fn builder() -> ChatMessageBuilder
pub fn builder() -> ChatMessageBuilder
Creates a new builder-style object to manufacture ChatMessage
.
Trait Implementations§
source§impl Clone for ChatMessage
impl Clone for ChatMessage
source§fn clone(&self) -> ChatMessage
fn clone(&self) -> ChatMessage
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ChatMessage
impl Debug for ChatMessage
source§impl PartialEq for ChatMessage
impl PartialEq for ChatMessage
source§fn eq(&self, other: &ChatMessage) -> bool
fn eq(&self, other: &ChatMessage) -> bool
self
and other
values to be equal, and is used
by ==
.