Struct aws_sdk_chime::model::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
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
sourceimpl 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.
sourceimpl ChannelMessage
impl ChannelMessage
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ChannelMessage
Trait Implementations
sourceimpl Clone for ChannelMessage
impl Clone for ChannelMessage
sourcefn clone(&self) -> ChannelMessage
fn clone(&self) -> ChannelMessage
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ChannelMessage
impl Debug for ChannelMessage
sourceimpl PartialEq<ChannelMessage> for ChannelMessage
impl PartialEq<ChannelMessage> for ChannelMessage
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &ChannelMessage) -> bool
fn ne(&self, other: &ChannelMessage) -> bool
This method tests for !=
.
impl StructuralPartialEq for ChannelMessage
Auto Trait Implementations
impl RefUnwindSafe for ChannelMessage
impl Send for ChannelMessage
impl Sync for ChannelMessage
impl Unpin for ChannelMessage
impl UnwindSafe for ChannelMessage
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more