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

pub struct Config {
Show 26 fields 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>,
}
Expand description

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.