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 ==.impl StructuralPartialEq for PropertyType
Auto Trait Implementations§
impl Freeze for PropertyType
impl RefUnwindSafe for PropertyType
impl Send for PropertyType
impl Sync for PropertyType
impl Unpin for PropertyType
impl UnwindSafe for PropertyType
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more