pub struct UnsubscribeProperties {
pub user_properties: Vec<(String, String)>,
}Expand description
Properties specific to Unsubscribe packets
In MQTT v5, Unsubscribe packets can include:
- User Properties (key-value pairs for extended metadata)
§Example
use mqute_codec::protocol::v5::UnsubscribeProperties;
let properties = UnsubscribeProperties {
user_properties: vec![("client".into(), "rust".into())],
};Fields§
§user_properties: Vec<(String, String)>User-defined key-value properties
Trait Implementations§
Source§impl Clone for UnsubscribeProperties
impl Clone for UnsubscribeProperties
Source§fn clone(&self) -> UnsubscribeProperties
fn clone(&self) -> UnsubscribeProperties
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 UnsubscribeProperties
impl Debug for UnsubscribeProperties
Source§impl PartialEq for UnsubscribeProperties
impl PartialEq for UnsubscribeProperties
impl Eq for UnsubscribeProperties
impl StructuralPartialEq for UnsubscribeProperties
Auto Trait Implementations§
impl Freeze for UnsubscribeProperties
impl RefUnwindSafe for UnsubscribeProperties
impl Send for UnsubscribeProperties
impl Sync for UnsubscribeProperties
impl Unpin for UnsubscribeProperties
impl UnwindSafe for UnsubscribeProperties
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