[−][src]Function rusp::usp_generator::usp_notify_request
pub fn usp_notify_request(
sub_id: &str,
send_resp: bool,
typ: NotifyType
) -> Body
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() });