Struct huelib::resource::sensor::Sensor[][src]

pub struct Sensor {
    pub id: String,
    pub name: String,
    pub type_name: String,
    pub model_id: String,
    pub unique_id: Option<String>,
    pub manufacturer_name: Option<String>,
    pub product_name: Option<String>,
    pub diversity_id: Option<String>,
    pub software_version: Option<String>,
    pub state: State,
    pub config: Config,
    pub recycle: Option<bool>,
}
Expand description

A sensor.

Fields

id: String

Identifier of the sensor.

name: String

Name of the sensor.

type_name: String

Type name of the sensor.

model_id: String

Model identifier of the sensor.

unique_id: Option<String>

Unique identifier of the sensor.

manufacturer_name: Option<String>

Manufacturer name of the sensor.

product_name: Option<String>

The product name.

diversity_id: Option<String>

Some proprietary id as seen on https://www.senic.com/friends-of-hue-smart-switch.

software_version: Option<String>

Software version of the sensor.

state: State

Current state of the sensor.

config: Config

Configuration of the sensor.

recycle: Option<bool>

Whether the group is automatically deleted when not referenced anymore.

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.