[][src]Struct huelib::resource::sensor::ConfigModifier

pub struct ConfigModifier {
    pub on: Option<bool>,
}

Modifier for the sensor configuration.

Fields

on: Option<bool>

Sets whether the sensor is on.

Implementations

impl ConfigModifier[src]

pub fn with_on(self, value: bool) -> Self[src]

Sets the on field of this struct.

impl ConfigModifier[src]

pub fn new() -> Self[src]

Creates a new ConfigModifier.

Trait Implementations

impl Clone for ConfigModifier[src]

impl Debug for ConfigModifier[src]

impl Default for ConfigModifier[src]

impl Eq for ConfigModifier[src]

impl Modifier for ConfigModifier[src]

type Id = String

The type of the identifier. Read more

impl PartialEq<ConfigModifier> for ConfigModifier[src]

impl Serialize for ConfigModifier[src]

impl StructuralEq for ConfigModifier[src]

impl StructuralPartialEq for ConfigModifier[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.