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.
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
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Config
impl UnwindSafe for Config
Blanket Implementations
Mutably borrows from an owned value. Read more