[−][src]Struct homie_controller::Node
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
impl Node
[src]
pub fn has_required_attributes(&self) -> bool
[src]
Returns whether all the required attributes of the node and its properties are filled in.
Trait Implementations
impl Clone for Node
[src]
impl Debug for Node
[src]
impl Eq for Node
[src]
impl PartialEq<Node> for Node
[src]
impl StructuralEq for Node
[src]
impl StructuralPartialEq for Node
[src]
Auto Trait Implementations
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnwindSafe for Node
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,