[][src]Function rusp::usp_generator::usp_notify_request

pub fn usp_notify_request<'a>(
    sub_id: &'a str,
    send_resp: bool,
    typ: &'a NotifyType
) -> Body<'a>

Wraps the body of a USP Msg with a USP Notify request

Arguments

  • sub_id - The subscription_id for the Notify
  • send_resp - Whether this requests expects a response to be sent
  • typ - A filled out NotifyType 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()
});