[−][src]Struct huemanity::lightstructs::SendableState
Helper object with some tweaks to serialisation. In order to use this object you have to do one of the following:
let state_1: SendableState = serde_json::from_str(r#"{"on":true}"#); let state_2: SendableState = SendableState {on:true, ..SendableState::default()}; let state_3: SendableState = state!(on: true, xy: [1.0, 0.123])
Fields
on: Option<bool>
bri: Option<u8>
hue: Option<u32>
sat: Option<u8>
effect: Option<String>
xy: Option<[f32; 2]>
alert: Option<String>
Trait Implementations
impl Debug for SendableState
[src]
impl Default for SendableState
[src]
impl<'de> Deserialize<'de> for SendableState
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for SendableState
[src]
Auto Trait Implementations
impl RefUnwindSafe for SendableState
impl Send for SendableState
impl Sync for SendableState
impl Unpin for SendableState
impl UnwindSafe for SendableState
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,