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
sourceimpl<'a> Scenes<'a>
impl<'a> Scenes<'a>
sourcepub fn list(&'a self) -> Request<'a, ()>
pub fn list(&'a self) -> Request<'a, ()>
Creates a terminal request to list all scenes.
Example
use lifxi::http::prelude::*;
let client = Client::new("foo");
let scenes = client
.scenes()
.list()
.send();
sourcepub fn activate<S: ToString>(&'a self, uuid: S) -> Activate<'a>
pub fn activate<S: ToString>(&'a self, uuid: S) -> Activate<'a>
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
impl<'a> !RefUnwindSafe for Scenes<'a>
impl<'a> Send for Scenes<'a>
impl<'a> Sync for Scenes<'a>
impl<'a> Unpin for Scenes<'a>
impl<'a> !UnwindSafe for Scenes<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more