Enum aws_sdk_iotfleetwise::model::Node
source · #[non_exhaustive]
pub enum Node {
Actuator(Actuator),
Attribute(Attribute),
Branch(Branch),
Sensor(Sensor),
Unknown,
}
Expand description
A general abstraction of a signal. A node can be specified as an actuator, attribute, branch, or sensor.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Actuator(Actuator)
Information about a node specified as an actuator.
An actuator is a digital representation of a vehicle device.
Attribute(Attribute)
Information about a node specified as an attribute.
An attribute represents static information about a vehicle.
Branch(Branch)
Information about a node specified as a branch.
A group of signals that are defined in a hierarchical structure.
Sensor(Sensor)
An input component that reports the environmental condition of a vehicle.
You can collect data about fluid levels, temperatures, vibrations, or battery voltage from sensors.
Unknown
The Unknown
variant represents cases where new union variant was received. Consider upgrading the SDK to the latest available version.
An unknown enum variant
Note: If you encounter this error, consider upgrading your SDK to the latest version.
The Unknown
variant represents cases where the server sent a value that wasn’t recognized
by the client. This can happen when the server adds new functionality, but the client has not been updated.
To investigate this, consider turning on debug logging to print the raw HTTP response.
Implementations§
source§impl Node
impl Node
sourcepub fn as_actuator(&self) -> Result<&Actuator, &Self>
pub fn as_actuator(&self) -> Result<&Actuator, &Self>
sourcepub fn is_actuator(&self) -> bool
pub fn is_actuator(&self) -> bool
Returns true if this is a Actuator
.
sourcepub fn as_attribute(&self) -> Result<&Attribute, &Self>
pub fn as_attribute(&self) -> Result<&Attribute, &Self>
sourcepub fn is_attribute(&self) -> bool
pub fn is_attribute(&self) -> bool
Returns true if this is a Attribute
.
sourcepub fn is_unknown(&self) -> bool
pub fn is_unknown(&self) -> bool
Returns true if the enum instance is the Unknown
variant.