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

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

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

Trait for creating a resource.

Required methods

pub fn url_suffix() -> String[src]

Returns the suffix of the API URL.

Loading content...

Provided methods

pub fn execute(&self, bridge: &Bridge) -> Result<String>[src]

Sends the request to create the resource.

Loading content...

Implementors

impl Creator for huelib::resource::group::Creator[src]

impl Creator for huelib::resource::resourcelink::Creator[src]

impl Creator for huelib::resource::rule::Creator[src]

impl Creator for huelib::resource::scene::Creator[src]

impl Creator for huelib::resource::schedule::Creator[src]

Loading content...