[][src]Struct huelib::config::Modifier

pub struct Modifier { /* fields omitted */ }

Struct for modifying configuration attributes.

Methods

impl Modifier[src]

pub fn new() -> Self[src]

Creates a new modifier.

pub fn is_empty(&self) -> bool[src]

Whether all attributes are None.

pub fn name(self, value: &str) -> Self[src]

Sets the name of the bridge.

pub fn ip_address(self, value: IpAddr) -> Self[src]

Sets the ip address of the bridge.

pub fn netmask(self, value: &str) -> Self[src]

Sets the network mask of the bridge.

pub fn gateway(self, value: IpAddr) -> Self[src]

Sets the gateway ip address of the bridge.

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

Sets whether the ip address of the bridge is obtained with DHCP.

pub fn proxy_port(self, value: u16) -> Self[src]

Sets the proxy port of the bridge. If set to 0 then a proxy is not being used.

pub fn proxy_address(self, value: Option<IpAddr>) -> Self[src]

Sets the proxy address of the bridge. If set to None then a proxy is not being used.

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

Indicates whether the link button has been pressed within the last 30 seconds. Writing is only allowed for portal access via cloud application_key.

Starts a touchlink procedure which adds the closest lamp (within range) to the ZigBee network. You can then search for new lights and the lamp will show up in the bridge.

pub fn zigbee_channel(self, value: u8) -> Self[src]

Sets the wireless frequency channel used by the bridge. It can take values of 11, 15, 20 or 25.

pub fn current_time(self, value: &str) -> Self[src]

Sets the current time of the bridge in UTC.

pub fn timezone(self, value: &str) -> Self[src]

Sets the timezone of the bridge.

Trait Implementations

impl Clone for Modifier[src]

impl Debug for Modifier[src]

impl Default for Modifier[src]

impl Eq for Modifier[src]

impl PartialEq<Modifier> for Modifier[src]

impl Serialize for Modifier[src]

impl StructuralEq for Modifier[src]

impl StructuralPartialEq for Modifier[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.