Lines
100 %
Functions
37.5 %
Branches
use serde::{Deserialize, Serialize};
use serde_json::{Map, Value};
#[derive(Deserialize, Serialize)]
pub struct PostApplicationBody {
pub data: PostApplicationData,
}
pub struct PostApplicationData {
pub code: String,
#[serde(rename = "unitId")]
pub unit_id: String,
#[serde(rename = "hostUri")]
pub host_uri: String,
pub name: Option<String>,
pub info: Option<Map<String, Value>>,
#[serde(skip_serializing)]
pub ttl: Option<usize>,
pub length: Option<usize>,
pub struct PatchApplicationBody {
pub data: PatchApplicationData,
#[derive(Default, Deserialize, Serialize)]
pub struct PatchApplicationData {
#[serde(rename = "hostUri", skip_serializing_if = "Option::is_none")]
pub host_uri: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub password: Option<String>,
#[derive(Deserialize)]
pub struct PostApplicationDlDataBody {
pub data: PostApplicationDlData,
pub struct PostApplicationDlData {
#[serde(rename = "deviceId")]
pub device_id: String,
pub payload: String,
pub struct PostNetworkBody {
pub data: PostNetworkData,
pub struct PostNetworkData {
pub unit_id: Option<String>,
pub struct PatchNetworkBody {
pub data: PatchNetworkData,
pub struct PatchNetworkData {
pub struct PostNetworkUlDataBody {
pub data: PostNetworkUlData,
pub struct PostNetworkUlData {