[][src]Function rusp::usp_generator::usp_set_request

pub fn usp_set_request<S: AsRef<str>, V: AsRef<[(S, S, bool)]>>(
    allow_partial: bool,
    args: &[(S, V)]
) -> Body

Generates a body of a USP Msg with a USP Set request

Arguments

  • allow_partial - A boolean indicating whether partial execution of the Set command is permitted
  • args - An array of tuples consisting of an object path and a arrow of tuples consisting of parametername, value and required flag to put into the Set request

Example

use rusp::usp_generator::usp_set_request;
let req = usp_set_request(true, &[("Device.DeviceInfo.", &[("ProvisioningCode", "configured", true)])]);