Struct aws_sdk_iotfleetwise::types::Sensor
source · #[non_exhaustive]pub struct Sensor { /* private fields */ }Expand description
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.
Implementations§
source§impl Sensor
impl Sensor
sourcepub fn fully_qualified_name(&self) -> Option<&str>
pub fn fully_qualified_name(&self) -> Option<&str>
The fully qualified name of the sensor. For example, the fully qualified name of a sensor might be Vehicle.Body.Engine.Battery.
sourcepub fn data_type(&self) -> Option<&NodeDataType>
pub fn data_type(&self) -> Option<&NodeDataType>
The specified data type of the sensor.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A brief description of a sensor.
sourcepub fn unit(&self) -> Option<&str>
pub fn unit(&self) -> Option<&str>
The scientific unit of measurement for data collected by the sensor.
sourcepub fn allowed_values(&self) -> Option<&[String]>
pub fn allowed_values(&self) -> Option<&[String]>
A list of possible values a sensor can take.
Trait Implementations§
source§impl PartialEq<Sensor> for Sensor
impl PartialEq<Sensor> for Sensor
impl StructuralPartialEq for Sensor
Auto Trait Implementations§
impl RefUnwindSafe for Sensor
impl Send for Sensor
impl Sync for Sensor
impl Unpin for Sensor
impl UnwindSafe for Sensor
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more