pub struct PubCompProperties {
pub reason_string: Option<String>,
pub user_properties: Vec<(String, String)>,
}Expand description
Represents an MQTT PubCompProperties packet
Contains optional properties for MQTT v5 acknowledgment packet that provide additional metadata about the operation.
§Example
use mqute_codec::protocol::v5::PubCompProperties;
let properties = PubCompProperties {
reason_string: Some(String::from("value")),
user_properties: vec![(String::from("key"), String::from("value"))],
};Fields§
§reason_string: Option<String>Human-readable description of the acknowledgement
user_properties: Vec<(String, String)>User-defined key-value properties for extended functionality
Trait Implementations§
Source§impl Clone for PubCompProperties
impl Clone for PubCompProperties
Source§fn clone(&self) -> PubCompProperties
fn clone(&self) -> PubCompProperties
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 PubCompProperties
impl Debug for PubCompProperties
Source§impl Default for PubCompProperties
impl Default for PubCompProperties
Source§fn default() -> PubCompProperties
fn default() -> PubCompProperties
Returns the “default value” for a type. Read more
Source§impl PartialEq for PubCompProperties
impl PartialEq for PubCompProperties
impl Eq for PubCompProperties
impl StructuralPartialEq for PubCompProperties
Auto Trait Implementations§
impl Freeze for PubCompProperties
impl RefUnwindSafe for PubCompProperties
impl Send for PubCompProperties
impl Sync for PubCompProperties
impl Unpin for PubCompProperties
impl UnwindSafe for PubCompProperties
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