pub struct Response<TResp>where
TResp: PayloadSerialize,{
pub payload: TResp,
pub content_type: Option<String>,
pub format_indicator: FormatIndicator,
pub custom_user_data: Vec<(String, String)>,
pub timestamp: Option<HybridLogicalClock>,
}
Expand description
Command Response struct.
Used by the Invoker
Fields§
§payload: TResp
Payload of the command response. Must implement PayloadSerialize
.
content_type: Option<String>
Content Type of the command response.
format_indicator: FormatIndicator
Format Indicator of the command response.
custom_user_data: Vec<(String, String)>
Custom user data set as custom MQTT User Properties on the Response message.
timestamp: Option<HybridLogicalClock>
Timestamp of the command response.
Trait Implementations§
Auto Trait Implementations§
impl<TResp> Freeze for Response<TResp>where
TResp: Freeze,
impl<TResp> RefUnwindSafe for Response<TResp>where
TResp: RefUnwindSafe,
impl<TResp> Send for Response<TResp>where
TResp: Send,
impl<TResp> Sync for Response<TResp>where
TResp: Sync,
impl<TResp> Unpin for Response<TResp>where
TResp: Unpin,
impl<TResp> UnwindSafe for Response<TResp>where
TResp: 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