pub struct MessageProperties {
pub payload_format_indicator: Option<bool>,
pub message_expiry_interval: Option<u32>,
pub response_topic: Option<String>,
pub correlation_data: Option<Vec<u8>>,
pub user_properties: Vec<(String, String)>,
pub subscription_identifiers: Vec<u32>,
pub content_type: Option<String>,
}Fields§
§payload_format_indicator: Option<bool>§message_expiry_interval: Option<u32>§response_topic: Option<String>§correlation_data: Option<Vec<u8>>§user_properties: Vec<(String, String)>§subscription_identifiers: Vec<u32>§content_type: Option<String>Trait Implementations§
Source§impl Clone for MessageProperties
impl Clone for MessageProperties
Source§fn clone(&self) -> MessageProperties
fn clone(&self) -> MessageProperties
Returns a duplicate 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 MessageProperties
impl Debug for MessageProperties
Source§impl Default for MessageProperties
impl Default for MessageProperties
Source§fn default() -> MessageProperties
fn default() -> MessageProperties
Returns the “default value” for a type. Read more
Source§impl From<MessageProperties> for PublishProperties
impl From<MessageProperties> for PublishProperties
Source§fn from(msg_props: MessageProperties) -> Self
fn from(msg_props: MessageProperties) -> Self
Converts to this type from the input type.
Source§impl From<Properties> for MessageProperties
impl From<Properties> for MessageProperties
Source§fn from(props: Properties) -> Self
fn from(props: Properties) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MessageProperties
impl RefUnwindSafe for MessageProperties
impl Send for MessageProperties
impl Sync for MessageProperties
impl Unpin for MessageProperties
impl UnwindSafe for MessageProperties
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