Struct lifxi::http::Scenes

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

A waypoint in working with scenes.

This struct is basically useless; call one of its member methods to do anything interesting.

Implementations

Creates a terminal request to list all scenes.

Example
use lifxi::http::prelude::*;
let client = Client::new("foo");
let scenes = client
    .scenes()
    .list()
    .send();

Creates a configurable request for activating a specific scene.

Example
use lifxi::http::prelude::*;
let client = Client::new("foo");
let result = client
    .scenes()
    .activate("asdf")
    .ignore("brightness")
    .ignore("saturation")
    .transition(::std::time::Duration::new(7, 0))
    .overwrite(State::builder().power(true))
    .send();

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 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.