[][src]Struct huelib::resource::config::Config

pub struct Config {
    pub name: String,
    pub software_update: SoftwareUpdate,
    pub software_version: String,
    pub api_version: String,
    pub link_button: bool,
    pub ip_address: IpAddr,
    pub mac_address: String,
    pub netmask: IpAddr,
    pub gateway: IpAddr,
    pub dhcp: bool,
    pub portal_services: bool,
    pub portal_connection: ServiceStatus,
    pub portal_state: PortalState,
    pub internet_services: InternetServices,
    pub current_time: NaiveDateTime,
    pub local_time: Option<NaiveDateTime>,
    pub timezone: Option<String>,
    pub zigbee_channel: u8,
    pub model_id: String,
    pub bridge_id: String,
    pub factory_new: bool,
    pub replaces_bridge_id: Option<String>,
    pub datastore_version: String,
    pub starterkit_id: String,
    pub backup: Backup,
    pub whitelist: Vec<User>,
}

Configuration for a bridge.

Fields

name: String

Name of the bridge.

software_update: SoftwareUpdate

Information about software updates.

software_version: String

Software version of the bridge.

api_version: String

The version of the Philips Hue API.

link_button: bool

Indicates whether the link button has been pressed within the last 30 seconds.

ip_address: IpAddr

IP address of the bridge.

mac_address: String

MAC address of the bridge.

netmask: IpAddr

Network mask of the bridge.

gateway: IpAddr

Gateway IP address of the bridge.

dhcp: bool

Whether the IP address of the bridge is obtained with DHCP.

portal_services: bool

Whether the bridge is registered to synchronize data with a portal account.

portal_connection: ServiceStatus

Status of the portal connection.

portal_state: PortalState

Portal state of the bridge.

internet_services: InternetServices

Internet services of the bridge.

current_time: NaiveDateTime

Current time stored on the bridge.

local_time: Option<NaiveDateTime>

Local time of the bridge.

timezone: Option<String>

Timezone of the bridge as OlsenIDs.

zigbee_channel: u8

The current wireless frequency channel used by the bridge.

It can take values of 11, 15, 20, 25 or 0 if undefined (factory new).

model_id: String

Uniquely identifies the hardware model of the bridge.

bridge_id: String

The unique bridge id.

factory_new: bool

Indicates if bridge settings are factory new.

replaces_bridge_id: Option<String>

Identifier of the bridge where a backup was restored.

If no backup was restored from another bridge, this will be None.

datastore_version: String

The version of the datastore.

starterkit_id: String

Name of the starterkit created in the factory.

backup: Backup

Backup information about the bridge.

whitelist: Vec<User>

Whitelisted users.

Trait Implementations

impl Clone for Config[src]

impl Debug for Config[src]

impl<'de> Deserialize<'de> for Config[src]

impl Eq for Config[src]

impl PartialEq<Config> for Config[src]

impl Resource for Config[src]

impl StructuralEq for Config[src]

impl StructuralPartialEq for Config[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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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.