#[non_exhaustive]pub struct ChannelMessageCallback {
pub message_id: Option<String>,
pub content: Option<String>,
pub metadata: Option<String>,
pub push_notification: Option<PushNotificationConfiguration>,
pub message_attributes: Option<HashMap<String, MessageAttributeValue>>,
}
Expand description
Stores information about a callback.
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.message_id: Option<String>
The message ID.
content: Option<String>
The message content.
metadata: Option<String>
The message metadata.
push_notification: Option<PushNotificationConfiguration>
The push notification configuration of the message.
message_attributes: Option<HashMap<String, MessageAttributeValue>>
The attributes for the message, used for message filtering along with a FilterRule
defined in the PushNotificationPreferences
.
Implementations
sourceimpl ChannelMessageCallback
impl ChannelMessageCallback
sourcepub fn message_id(&self) -> Option<&str>
pub fn message_id(&self) -> Option<&str>
The message ID.
sourcepub fn push_notification(&self) -> Option<&PushNotificationConfiguration>
pub fn push_notification(&self) -> Option<&PushNotificationConfiguration>
The push notification configuration of the message.
sourcepub fn message_attributes(
&self
) -> Option<&HashMap<String, MessageAttributeValue>>
pub fn message_attributes(
&self
) -> Option<&HashMap<String, MessageAttributeValue>>
The attributes for the message, used for message filtering along with a FilterRule
defined in the PushNotificationPreferences
.
sourceimpl ChannelMessageCallback
impl ChannelMessageCallback
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ChannelMessageCallback
Trait Implementations
sourceimpl Clone for ChannelMessageCallback
impl Clone for ChannelMessageCallback
sourcefn clone(&self) -> ChannelMessageCallback
fn clone(&self) -> ChannelMessageCallback
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 ChannelMessageCallback
impl Debug for ChannelMessageCallback
sourceimpl PartialEq<ChannelMessageCallback> for ChannelMessageCallback
impl PartialEq<ChannelMessageCallback> for ChannelMessageCallback
sourcefn eq(&self, other: &ChannelMessageCallback) -> bool
fn eq(&self, other: &ChannelMessageCallback) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ChannelMessageCallback) -> bool
fn ne(&self, other: &ChannelMessageCallback) -> bool
This method tests for !=
.
impl StructuralPartialEq for ChannelMessageCallback
Auto Trait Implementations
impl RefUnwindSafe for ChannelMessageCallback
impl Send for ChannelMessageCallback
impl Sync for ChannelMessageCallback
impl Unpin for ChannelMessageCallback
impl UnwindSafe for ChannelMessageCallback
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> 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