Struct for_mqtt_client::UnsubscribeBuilder
source · pub struct UnsubscribeBuilder<T: Protocol> {
pub trace_id: u32,
pub user_properties: Vec<(String, String)>,
pub filters: Vec<UnsubscribeFilterBuilder<T>>,
}
Fields§
§trace_id: u32
§user_properties: Vec<(String, String)>
§filters: Vec<UnsubscribeFilterBuilder<T>>
Implementations§
source§impl<T: Protocol> UnsubscribeBuilder<T>
impl<T: Protocol> UnsubscribeBuilder<T>
pub fn add_filter(&mut self, path: String) -> &mut UnsubscribeFilterBuilder<T>
source§impl UnsubscribeBuilder<ProtocolV5>
impl UnsubscribeBuilder<ProtocolV5>
pub fn add_user_properties(&mut self, key: String, val: String) -> &mut Self
Trait Implementations§
source§impl<T: Protocol> From<UnsubscribeBuilder<T>> for TraceUnubscribe
impl<T: Protocol> From<UnsubscribeBuilder<T>> for TraceUnubscribe
source§fn from(value: UnsubscribeBuilder<T>) -> Self
fn from(value: UnsubscribeBuilder<T>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> RefUnwindSafe for UnsubscribeBuilder<T>where T: RefUnwindSafe,
impl<T> Send for UnsubscribeBuilder<T>where T: Send,
impl<T> Sync for UnsubscribeBuilder<T>where T: Sync,
impl<T> Unpin for UnsubscribeBuilder<T>where T: Unpin,
impl<T> UnwindSafe for UnsubscribeBuilder<T>where T: UnwindSafe,
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