Trait huelib::resource::Creator[][src]

pub trait Creator: Serialize {
    fn url_suffix() -> String;

    fn execute(&self, bridge: &Bridge) -> Result<String> { ... }
}
Expand description

Trait for creating a resource.

Required methods

Returns the suffix of the API URL.

Provided methods

Sends the request to create the resource.

Implementors