Struct rust_tuyapi::PayloadStruct
source · [−]pub struct PayloadStruct {
pub dev_id: String,
pub gw_id: Option<String>,
pub uid: Option<String>,
pub t: Option<u32>,
pub dp_id: Option<Vec<u8>>,
pub dps: Option<HashMap<String, Value>>,
}Expand description
The PayloadStruct is Serialized to json and sent to the device. The dps field contains the actual commands to set and are device specific.
Fields
dev_id: Stringgw_id: Option<String>uid: Option<String>t: Option<u32>dp_id: Option<Vec<u8>>dps: Option<HashMap<String, Value>>Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Take the last 5 characters
Auto Trait Implementations
impl RefUnwindSafe for PayloadStruct
impl Send for PayloadStruct
impl Sync for PayloadStruct
impl Unpin for PayloadStruct
impl UnwindSafe for PayloadStruct
Blanket Implementations
Mutably borrows from an owned value. Read more