Struct aws_sdk_iotsitewise::types::PropertyType
source · #[non_exhaustive]pub struct PropertyType {
pub attribute: Option<Attribute>,
pub measurement: Option<Measurement>,
pub transform: Option<Transform>,
pub metric: Option<Metric>,
}Expand description
Contains a property type, which can be one of attribute, measurement, metric, or transform.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.attribute: Option<Attribute>Specifies an asset attribute property. An attribute generally contains static information, such as the serial number of an IIoT wind turbine.
measurement: Option<Measurement>Specifies an asset measurement property. A measurement represents a device's raw sensor data stream, such as timestamped temperature values or timestamped power values.
transform: Option<Transform>Specifies an asset transform property. A transform contains a mathematical expression that maps a property's data points from one form to another, such as a unit conversion from Celsius to Fahrenheit.
metric: Option<Metric>Specifies an asset metric property. A metric contains a mathematical expression that uses aggregate functions to process all input data points over a time interval and output a single data point, such as to calculate the average hourly temperature.
Implementations§
source§impl PropertyType
impl PropertyType
sourcepub fn attribute(&self) -> Option<&Attribute>
pub fn attribute(&self) -> Option<&Attribute>
Specifies an asset attribute property. An attribute generally contains static information, such as the serial number of an IIoT wind turbine.
sourcepub fn measurement(&self) -> Option<&Measurement>
pub fn measurement(&self) -> Option<&Measurement>
Specifies an asset measurement property. A measurement represents a device's raw sensor data stream, such as timestamped temperature values or timestamped power values.
source§impl PropertyType
impl PropertyType
sourcepub fn builder() -> PropertyTypeBuilder
pub fn builder() -> PropertyTypeBuilder
Creates a new builder-style object to manufacture PropertyType.
Trait Implementations§
source§impl Clone for PropertyType
impl Clone for PropertyType
source§fn clone(&self) -> PropertyType
fn clone(&self) -> PropertyType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for PropertyType
impl Debug for PropertyType
source§impl PartialEq for PropertyType
impl PartialEq for PropertyType
source§fn eq(&self, other: &PropertyType) -> bool
fn eq(&self, other: &PropertyType) -> bool
self and other values to be equal, and is used
by ==.