Struct aws_sdk_chime::types::ChannelMessageSummary
source · #[non_exhaustive]pub struct ChannelMessageSummary {
pub message_id: Option<String>,
pub content: Option<String>,
pub metadata: Option<String>,
pub type: Option<ChannelMessageType>,
pub created_timestamp: Option<DateTime>,
pub last_updated_timestamp: Option<DateTime>,
pub last_edited_timestamp: Option<DateTime>,
pub sender: Option<Identity>,
pub redacted: bool,
}
Expand description
Summary of the messages 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.message_id: Option<String>
The ID of the message.
content: Option<String>
The content of the message.
metadata: Option<String>
The metadata of the message.
type: Option<ChannelMessageType>
The type of message.
created_timestamp: Option<DateTime>
The time at which the message summary was created.
last_updated_timestamp: Option<DateTime>
The time at which a message was last updated.
last_edited_timestamp: Option<DateTime>
The time at which a message was last edited.
sender: Option<Identity>
The message sender.
redacted: bool
Indicates whether a message was redacted.
Implementations§
source§impl ChannelMessageSummary
impl ChannelMessageSummary
sourcepub fn message_id(&self) -> Option<&str>
pub fn message_id(&self) -> Option<&str>
The ID of the message.
sourcepub fn type(&self) -> Option<&ChannelMessageType>
pub fn type(&self) -> Option<&ChannelMessageType>
The type of message.
sourcepub fn created_timestamp(&self) -> Option<&DateTime>
pub fn created_timestamp(&self) -> Option<&DateTime>
The time at which the message summary was created.
sourcepub fn last_updated_timestamp(&self) -> Option<&DateTime>
pub fn last_updated_timestamp(&self) -> Option<&DateTime>
The time at which a message was last updated.
sourcepub fn last_edited_timestamp(&self) -> Option<&DateTime>
pub fn last_edited_timestamp(&self) -> Option<&DateTime>
The time at which a message was last edited.
source§impl ChannelMessageSummary
impl ChannelMessageSummary
sourcepub fn builder() -> ChannelMessageSummaryBuilder
pub fn builder() -> ChannelMessageSummaryBuilder
Creates a new builder-style object to manufacture ChannelMessageSummary
.
Trait Implementations§
source§impl Clone for ChannelMessageSummary
impl Clone for ChannelMessageSummary
source§fn clone(&self) -> ChannelMessageSummary
fn clone(&self) -> ChannelMessageSummary
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 ChannelMessageSummary
impl Debug for ChannelMessageSummary
source§impl PartialEq for ChannelMessageSummary
impl PartialEq for ChannelMessageSummary
source§fn eq(&self, other: &ChannelMessageSummary) -> bool
fn eq(&self, other: &ChannelMessageSummary) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ChannelMessageSummary
Auto Trait Implementations§
impl Freeze for ChannelMessageSummary
impl RefUnwindSafe for ChannelMessageSummary
impl Send for ChannelMessageSummary
impl Sync for ChannelMessageSummary
impl Unpin for ChannelMessageSummary
impl UnwindSafe for ChannelMessageSummary
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.