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: ChatEventType
Type 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
ContentType
parameter in the SendMessage topic in the Amazon Connect Participant Service API Reference. -
For allowed event content types, see the
ContentType
parameter 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
Content
parameter in the SendMessage topic in the Amazon Connect Participant Service API Reference. -
For allowed event content, see the
Content
parameter 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
ContentType
parameter in the SendMessage topic in the Amazon Connect Participant Service API Reference. -
For allowed event content types, see the
ContentType
parameter 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
Content
parameter in the SendMessage topic in the Amazon Connect Participant Service API Reference. -
For allowed event content, see the
Content
parameter in the SendEvent topic in the Amazon Connect Participant Service API Reference.
Trait Implementations§
source§impl PartialEq for ChatEvent
impl PartialEq for ChatEvent
impl StructuralPartialEq for ChatEvent
Auto Trait Implementations§
impl Freeze for ChatEvent
impl RefUnwindSafe for ChatEvent
impl Send for ChatEvent
impl Sync for ChatEvent
impl Unpin for ChatEvent
impl UnwindSafe for ChatEvent
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