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§
Source§impl<'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> Freeze for Scenes<'a>
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more