Struct rabbitmq_stream_client::types::Message
source · pub struct Message(/* private fields */);
Expand description
API for inbound and outbound messages
Implementations§
source§impl Message
impl Message
sourcepub fn value_ref<'a, T>(&'a self) -> Result<Option<T>, DecodeError>
pub fn value_ref<'a, T>(&'a self) -> Result<Option<T>, DecodeError>
Extract a value as reference from the amqp-value
section of the body if present
sourcepub fn properties(&self) -> Option<&Properties>
pub fn properties(&self) -> Option<&Properties>
Get the properties of the message
sourcepub fn message_annotations(&self) -> Option<&Map<AnnonationKey, Value>>
pub fn message_annotations(&self) -> Option<&Map<AnnonationKey, Value>>
Get the annotations of the message
sourcepub fn application_properties(&self) -> Option<&Map<String, SimpleValue>>
pub fn application_properties(&self) -> Option<&Map<String, SimpleValue>>
Get the application properties of the message
sourcepub fn delivery_annotations(&self) -> Option<&Map<AnnonationKey, Value>>
pub fn delivery_annotations(&self) -> Option<&Map<AnnonationKey, Value>>
Get the delivery annotations of the message
sourcepub fn publishing_id(&self) -> Option<&u64>
pub fn publishing_id(&self) -> Option<&u64>
Get a reference to the message’s publishing id.
Trait Implementations§
source§impl PartialEq for Message
impl PartialEq for Message
impl Eq for Message
impl StructuralEq for Message
impl StructuralPartialEq for Message
Auto Trait Implementations§
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more