new-home-application 0.1.3

New Home iot application framework. Meant to build application for the New Home Core
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use serde::{Deserialize, Serialize};
use serde_json::Value;

/// Contains the structure for a method request
/// Contains the name of the method that should be called
/// And a list of arguments which is a `serde_json::Value`
#[derive(Serialize, Deserialize)]
pub struct RequestData {
    /// The name of the method that is called
    pub method_name: String,

    /// The list of arguments which are supplied to the method
    pub arguments: Value,
}