Struct huelib::resource::schedule::Command [−][src]
pub struct Command {
pub address: String,
pub request_method: CommandRequestMethod,
pub body: JsonValue,
}
Expand description
Command of a schedule.
Fields
address: String
Address where the command will be executed.
request_method: CommandRequestMethod
The HTTP method used to send the body to the given address.
body: JsonValue
Body of the request that the command sends.
Implementations
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
Auto Trait Implementations
impl RefUnwindSafe for Command
impl UnwindSafe for Command
Blanket Implementations
Mutably borrows from an owned value. Read more