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