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 ==
.impl StructuralPartialEq for ChatMessage
Auto Trait Implementations§
impl Freeze for ChatMessage
impl RefUnwindSafe for ChatMessage
impl Send for ChatMessage
impl Sync for ChatMessage
impl Unpin for ChatMessage
impl UnwindSafe for ChatMessage
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more