Function rusp::usp_generator::usp_msg [−][src]
pub fn usp_msg(msg_id: String, body: Body<'_>) -> Msg<'_>
Wraps the body of a USP Msg into a USP Msg with the specified message ID
Arguments
msg_id
- The message ID to put into the USP Msgbody
- The message body USP Msg
Example
use rusp::usp_generator::{usp_msg, usp_get_request}; let newmsg = usp_msg( "fancymsgid".to_string(), usp_get_request(&["Device.", "Device.DeviceInfo."]), );