Function rusp::usp_generator::usp_msg_by_ref
source · pub fn usp_msg_by_ref<'a>(msg_id: &'a str, body: &Body<'a>) -> Msg<'a>
Expand description
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_by_ref, usp_get_request};
let newmsg = usp_msg_by_ref(
"fancymsgid",
&usp_get_request(&["Device.", "Device.DeviceInfo."], 0),
);