Struct aws_sdk_chime::types::ChannelMessage
source · #[non_exhaustive]pub struct ChannelMessage {
pub channel_arn: Option<String>,
pub message_id: Option<String>,
pub content: Option<String>,
pub metadata: Option<String>,
pub type: Option<ChannelMessageType>,
pub created_timestamp: Option<DateTime>,
pub last_edited_timestamp: Option<DateTime>,
pub last_updated_timestamp: Option<DateTime>,
pub sender: Option<Identity>,
pub redacted: bool,
pub persistence: Option<ChannelMessagePersistenceType>,
}
Expand description
The details of a message in a channel.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.channel_arn: Option<String>
The ARN of the channel.
message_id: Option<String>
The ID of a message.
content: Option<String>
The message content.
metadata: Option<String>
The message metadata.
type: Option<ChannelMessageType>
The message type.
created_timestamp: Option<DateTime>
The time at which the message was created.
last_edited_timestamp: Option<DateTime>
The time at which a message was edited.
last_updated_timestamp: Option<DateTime>
The time at which a message was updated.
sender: Option<Identity>
The message sender.
redacted: bool
Hides the content of a message.
persistence: Option<ChannelMessagePersistenceType>
The persistence setting for a channel message.
Implementations§
source§impl ChannelMessage
impl ChannelMessage
sourcepub fn channel_arn(&self) -> Option<&str>
pub fn channel_arn(&self) -> Option<&str>
The ARN of the channel.
sourcepub fn message_id(&self) -> Option<&str>
pub fn message_id(&self) -> Option<&str>
The ID of a message.
sourcepub fn type(&self) -> Option<&ChannelMessageType>
pub fn type(&self) -> Option<&ChannelMessageType>
The message type.
sourcepub fn created_timestamp(&self) -> Option<&DateTime>
pub fn created_timestamp(&self) -> Option<&DateTime>
The time at which the message was created.
sourcepub fn last_edited_timestamp(&self) -> Option<&DateTime>
pub fn last_edited_timestamp(&self) -> Option<&DateTime>
The time at which a message was edited.
sourcepub fn last_updated_timestamp(&self) -> Option<&DateTime>
pub fn last_updated_timestamp(&self) -> Option<&DateTime>
The time at which a message was updated.
sourcepub fn persistence(&self) -> Option<&ChannelMessagePersistenceType>
pub fn persistence(&self) -> Option<&ChannelMessagePersistenceType>
The persistence setting for a channel message.
source§impl ChannelMessage
impl ChannelMessage
sourcepub fn builder() -> ChannelMessageBuilder
pub fn builder() -> ChannelMessageBuilder
Creates a new builder-style object to manufacture ChannelMessage
.
Trait Implementations§
source§impl Clone for ChannelMessage
impl Clone for ChannelMessage
source§fn clone(&self) -> ChannelMessage
fn clone(&self) -> ChannelMessage
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ChannelMessage
impl Debug for ChannelMessage
source§impl PartialEq for ChannelMessage
impl PartialEq for ChannelMessage
source§fn eq(&self, other: &ChannelMessage) -> bool
fn eq(&self, other: &ChannelMessage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ChannelMessage
Auto Trait Implementations§
impl Freeze for ChannelMessage
impl RefUnwindSafe for ChannelMessage
impl Send for ChannelMessage
impl Sync for ChannelMessage
impl Unpin for ChannelMessage
impl UnwindSafe for ChannelMessage
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.