Enum aws_sdk_iotfleetwise::types::Node
source · #[non_exhaustive]pub enum Node {
Actuator(Actuator),
Attribute(Attribute),
Branch(Branch),
Property(CustomProperty),
Sensor(Sensor),
Struct(CustomStruct),
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.
Property(CustomProperty)
Represents a member of the complex data structure. The datatype
of the property can be either primitive or another struct
.
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.
Struct(CustomStruct)
Represents a complex or higher-order data structure.
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 as_property(&self) -> Result<&CustomProperty, &Self>
pub fn as_property(&self) -> Result<&CustomProperty, &Self>
Tries to convert the enum instance into Property
, extracting the inner CustomProperty
.
Returns Err(&Self)
if it can’t be converted.
sourcepub fn is_property(&self) -> bool
pub fn is_property(&self) -> bool
Returns true if this is a Property
.
sourcepub fn as_struct(&self) -> Result<&CustomStruct, &Self>
pub fn as_struct(&self) -> Result<&CustomStruct, &Self>
Tries to convert the enum instance into Struct
, extracting the inner CustomStruct
.
Returns Err(&Self)
if it can’t be converted.
sourcepub fn is_unknown(&self) -> bool
pub fn is_unknown(&self) -> bool
Returns true if the enum instance is the Unknown
variant.