fn modifier_from(state: light::State) -> light::StateModifier {
        light::StateModifier::new()
            .on(state.on.unwrap())
            .brightness(ModifierType::Override, state.brightness.unwrap())
            .hue(ModifierType::Override, state.hue.unwrap_or(0))
            .saturation(ModifierType::Override, state.saturation.unwrap_or(0))
            .transition_time(TRANSITION_TIME)
    }
/// Returns a light state modifier from a light state.
Returns a light state modifier from a light state.
Returns a light state modifier from a light state .
fn modifier_from(state: light::State) -> light::StateModifier {
        light::StateModifier::new()
            .on(state.on.unwrap())
            .brightness(ModifierType::Override, state.brightness.unwrap())
            .hue(ModifierType::Override, state.hue.unwrap_or(0))
            .saturation(ModifierType::Override, state.saturation.unwrap_or(0))
            .transition_time(TRANSITION_TIME)
    }
fn modifier_from ( state : light :: State ) -> light :: StateModifier { light :: StateModifier :: new ( ) . on ( state . on . unwrap ( ) ) . brightness ( ModifierType :: Override , state . brightness . unwrap ( ) ) . hue ( ModifierType :: Override , state . hue . unwrap_or ( 0 ) ) . saturation ( ModifierType :: Override , state . saturation . unwrap_or ( 0 ) ) . transition_time ( TRANSITION_TIME ) }
Returns a light state modifier from a light state.
Returns a light state modifier from a light state .
state
light::State