Trait huelib::resource::Modifier[][src]

pub trait Modifier: Serialize {
    type Id;
    fn url_suffix(id: Self::Id) -> String;

    fn execute(
        &self,
        bridge: &Bridge,
        id: Self::Id
    ) -> Result<Vec<Response<Modified>>> { ... } }
Expand description

Trait for modifying a resource.

Associated Types

The type of the identifier.

Set to () if only one resource of the same type exists.

Required methods

Returns the suffix of the API URL.

Provided methods

Sends the request to modify the resource.

Implementors