Function rusp::usp_generator::usp_notify_request
source · pub fn usp_notify_request<'a>(
sub_id: &'a str,
send_resp: bool,
typ: &'a NotifyType
) -> Body<'a>
Expand description
Wraps the body of a USP Msg with a USP Notify request
§Arguments
sub_id
- The subscription_id for the Notifysend_resp
- Whether this requests expects a response to be senttyp
- A filled outNotifyType
structure
§Example
use rusp::usp_types::NotifyType;
use rusp::usp_generator::usp_notify_request;
let req = usp_notify_request("", true, &NotifyType::OnBoardRequest {
oui: "ABCABC".to_string(),
product_class: "PC".to_string(),
serial_number: "000000".to_string(),
agent_supported_protocol_versions: "1.0".to_string()
});