[][src]Function rusp::usp_generator::usp_msg

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 Msg
  • body - 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."]),
);