Struct homie_controller::Node
source · [−]pub struct Node {
pub id: String,
pub name: Option<String>,
pub node_type: Option<String>,
pub properties: HashMap<String, Property>,
}
Expand description
A node of a Homie device.
All attributes are required, but might not be available immediately when the node is first discovered.
Fields
id: String
The subtopic ID of the node. This is unique per device, and should follow the Homie ID format.
name: Option<String>
The human-readable name of the node. This is a required attribute, but might not be available as soon as the node is first discovered.
node_type: Option<String>
The type of the node. This is an arbitrary string. It is a required attribute, but might not be available as soon as the node is first discovered.
properties: HashMap<String, Property>
The properties of the node, keyed by their IDs. There should be at least one.
Implementations
Returns whether all the required attributes of the node and its properties are filled in.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Node
impl UnwindSafe for Node
Blanket Implementations
Mutably borrows from an owned value. Read more