Struct lifxi::http::SetStates

source ·
pub struct SetStates<'a> { /* private fields */ }
Expand description

A scoped request to uniformly set the state for all selected bulbs.

##Example

use lifxi::http::prelude::*;
let client = Client::new("foo");
let red = State::builder().color(Color::Red);
let purple = State::builder().color(Color::Purple);
let result = client
    .set_states()
    .add(Selector::Label("Desk".to_string()), red)
    .add(Selector::Label("Ceiling".to_string()), purple)
    .default(State::builder().power(true).brightness(0.8))
    .send();

Implementations

Adds the given state to the list.

Sets the default properties to use if left unspecified.

Sets whether to perform the action quickly (skipping checks and verification).

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.